Hallo,
ich möchte das Backend-Label eines selbst erstellten tl_content-Feldes ändern bzw. erstellen.
So hab ich das Feld eingefügt:
app/Resources/contao/dca/tl_content.php
Code:
$GLOBALS['TL_DCA']['tl_content']['fields']['limitGalleryImgs'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_member']['secret_phone'],
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('maxlength'=>64, 'tl_class'=>'w50'),
'sql' => "varchar(64) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_content']['palettes']['gallery'] = str_replace(
',sortBy,',
',sortBy,limitGalleryImgs,',
$GLOBALS['TL_DCA']['tl_content']['palettes']['gallery']
);
... das funktioniert wunderbar – das Feld wird im Backend angezeigt.
Nun möchte ich so eine Bezeichnung einfügen:
app/Resources/contao/languages/de/default.php
Code:
$GLOBALS['TL_LANG']['tl_content']['limitGalleryImgs'] = array('Foo','Bar');
... das funktioniert leider nicht
Muss der Dateiname so lauten?
app/Resources/contao/languages/de/content.php
Oder bin ich da generell am Holzweg?
Lesezeichen