Danke dir.
Das hatte ich schon gemacht, nochmal leicht angepasst, aber auch erfolglos.
PHP-Code:
use Contao\CoreBundle\DataContainer\PaletteManipulator;
$GLOBALS['TL_DCA']['tl_page']['fields']['intro'] = [
'label' => ['Introtext', 'Introtext'],
'inputType' => 'text',
'eval' => ['tl_class' => 'clr', 'maxlength' => 255],
'sql' => ['type' => 'string', 'length' => 255, 'default' => ''],
];
PaletteManipulator::create()
->addField('intro', 'title_legend', PaletteManipulator::POSITION_APPEND)
->applyToPalette('default', 'tl_page');
Muss ich im Template auch noch etwas anpassen?
Lesezeichen