ich definiere in der system/modules/xx/dca/tl_page.php die Felder:
PHP-Code:
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
$GLOBALS['TL_DCA']['tl_page']['palettes']['regular'] = str_replace
(
'description',
'description,text_1',
$GLOBALS['TL_DCA']['tl_page']['palettes']['regular']
);
$GLOBALS['TL_DCA']['tl_page']['fields']['text_1'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['text_1'],
'exclude' => true,
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'maxlength' => 255
)
);
$GLOBALS['TL_DCA']['tl_page']['palettes']['regular'] = str_replace
(
'text_1',
'text_1,text_2',
$GLOBALS['TL_DCA']['tl_page']['palettes']['regular']
);
$GLOBALS['TL_DCA']['tl_page']['fields']['text_2'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_page']['text_2'],
'exclude' => true,
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'maxlength' => 255
)
);
?>
Die Felder in der Datenbank sind auch angelegt. Nun will ich den text, der in text_1 und text_2 steht in meinem Template fe_page.html5 ausgeben.
Wie bekomme ich das hin?
Viele Grüße
Lesezeichen