PHP-Code:
<?php
// rsce_video_mit_textbox_config.php
return array(
'label' => array('Video mit Textbox', 'Erzeugt eine...'),
'types' => array('content'),
'contentCategory' => 'media',
'standardFields' => array('headline', 'cssID'),
'fields' => array(
'text' => array(
'label' => array('Text', ''),
'eval' => array('rte' => 'tinyMCE'),
'inputType' => 'textarea',
),
'video' => array (
'label' => array('Video',''),
'inputType' => 'fileTree',
'eval' => array('mandatory' => false, 'fieldType' => 'radio', 'files' => true, 'filesOnly' => true, 'tl_class'=>'clr', 'extensions' => 'mp4'),
),
'poster' => array
(
'label' => array('Vorschaubild',''),
'inputType' => 'fileTree',
'eval' => array('filesOnly'=>true, 'fieldType'=>'radio'),
),
'playerOptions' => array
(
'label' => array('playerOptions',''),
'inputType' => 'checkbox',
'options' => array('controls','autoplay', 'nocontrols', 'loop', 'playsinline', 'muted'),
'reference' => &$GLOBALS['TL_LANG']['tl_content'],
'eval' => array('multiple'=>true, 'tl_class'=>'clr'),
),
'playerPreload' => array
(
'label' => array('playerPreload',''),
'inputType' => 'select',
'options' => array('auto', 'metadata', 'none'),
'reference' => &$GLOBALS['TL_LANG']['tl_content']['player_preload'],
'eval' => array('includeBlankOption' => true, 'nospace'=>true, 'tl_class'=>'w50'),
),
),
);
Lesezeichen