Hallo Zusammen,
ich habe die tl_page um ein paar Felder erweitert, im Backend funktioniert alles wie gewünscht. Bei den Einstellungen der Benutzergruppen-Rechte erscheinen aber nur 2 der 5 Felder in der Liste der Felder. Hier der Ausschnitt aus der DCA:
Code:
$GLOBALS['TL_DCA']['tl_page']['fields']['beconcol'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['beconcol'],
'inputType' => 'multitextWizard',
'sql' => "text NULL default ''",
'eval' => array
(
'style'=>'width:50%;',
'columns' => array
(
array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['becon'],
'mandatory' => false,
'width' => '50%'
)
)
)
);
$GLOBALS['TL_DCA']['tl_page']['fields']['maccol'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['maccol'],
'inputType' => 'multitextWizard',
'eval' => array
(
'style'=>'width:50%;',
'columns' => array
(
array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['mac'],
'mandatory' => false,
'width' => '50%'
)
)
),
'sql' => "text NULL default ''"
);
$GLOBALS['TL_DCA']['tl_page']['fields']['kat'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['kategorien'],
'inputType' => 'multiColumnWizard',
'sql' => "varchar(5000) NOT NULL default ''",
'eval' => array
(
'columnFields' => array
(
'kategorie' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['kat'],
'exclude' => true,
'inputType' => 'select',
'options_callback' => array('tl_page_app', 'getKategorie'),
'eval' => array('mandatory'=> true,'style' => 'width:350px', 'includeBlankOption' => true, 'chosen' => true)
)
),
'mandatory' => true,
)
);
$GLOBALS['TL_DCA']['tl_page']['fields']['geolong'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['geolong'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('mandatory' => false,'style'=>'width:50%;'),
'sql' => "varchar(15) NOT NULL default ''"
);
$GLOBALS['TL_DCA']['tl_page']['fields']['geolat'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['geolat'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('mandatory' => false,'style'=>'width:50%;'),
'sql' => "varchar(15) NOT NULL default ''"
);
Die geolat und geolong wird angezeigt, beconcol, maccol und kat nicht.
Gruß aus Köln Mike
(Contao 4.4)
Lesezeichen