Habe hier mal testhalber versucht Video/Audio zu erstellen, weil mehr Felder vorhanden sind.
PHP-Code:
// Palettes
$GLOBALS['TL_DCA']['tl_news']['palettes']['default'] = str_replace
(
'addImage;',
'addImage;{media_legend},playerSRC;',
$GLOBALS['TL_DCA']['tl_news']['palettes']['default']
);
$GLOBALS['TL_DCA']['tl_news']['palettes']['default'] = str_replace
(
'playerSRC;',
'playerSRC,posterSRC',
$GLOBALS['TL_DCA']['tl_news']['palettes']['default']
);
$GLOBALS['TL_DCA']['tl_news']['palettes']['default'] = str_replace
(
'posterSRC;',
'posterSRC,playerSize',
$GLOBALS['TL_DCA']['tl_news']['palettes']['default']
);
// Fields
$GLOBALS['TL_DCA']['tl_news']['fields']['playerSRC'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_news']['playerSRC'],
'exclude' => true,
'inputType' => 'fileTree',
'eval' => array('multiple'=>true, 'fieldType'=>'checkbox', 'files'=>true, 'mandatory'=>true),
'sql' => "blob NULL"
);
$GLOBALS['TL_DCA']['tl_news']['fields']['posterSRC'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_news']['posterSRC'],
'exclude' => true,
'inputType' => 'fileTree',
'eval' => array('filesOnly'=>true, 'fieldType'=>'radio'),
'sql' => "binary(16) NULL"
);
$GLOBALS['TL_DCA']['tl_news']['fields']['playerSize'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_news']['playerSize'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('multiple'=>true, 'size'=>2, 'rgxp'=>'natural', 'nospace'=>true, 'tl_class'=>'w50'),
'sql' => "varchar(64) NOT NULL default ''"
);
Gruß
Thomas
Lesezeichen