DCA - Palettes abhängig von ptable.field
Moin, moin,
ich wollte die DCA-Erstellung im ersten Schritt wie folgt umbauen:
PHP-Code:
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
$GLOBALS['TL_DCA']['tl_km_dokumente'] = array
(
// Config
'config' => array
(
...
),
// List
'list' => array
(
...
)
);
$GLOBALS['TL_DCA']['tl_km_dokumente'] = array
(
// Palettes
'palettes' => array
(
...
),
// Subpalettes
'subpalettes' => array
(
...
)
);
$GLOBALS['TL_DCA']['tl_km_dokumente'] = array
(
// Fields
'fields' => array
(
...
)
);
?>
weil ich letztendlich die 'Palettes' abhängig von einem Feld in der Elterntabelle variieren möchte. Leider bekomme ich bereits jetzt die Fehlermeldung:
Fatal error: Could not create a data container object in …\system\modules\backend\Backend.php on line 220
#0 [internal function]: __error(256, 'Could not creat...', 'F:\Contao2Go\ht...', 220, Array)
#1 …\system\modules\backend\Backend.php(220): trigger_error('Could not creat...', 256)
#2 …\contao\main.php(120): Backend->getBackendModule('Sitzungen')
#3 …\contao\main.php(230): Main->run()
#4 {main}
Ist dieses Vorgehen grundsätzlich falsch? Darf man das $GLOBALS['TL_DCA'] nicht stückeln?
Im Voraus schon mal Danke für die Tipps, Gruß
Bees2