PHP-Code:
<?php
return array(
'label' => array('Bilder','',),
'types' => array('content'),
'standardFields' => array('cssID'),
'fields' => array(
'headline' => array(
'inputType' => 'standardField',
'label' => array('Überschrift',''),
'options' => array('h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'),
),
'size' => array(
'label' => array('Bildbreite und Bildhöhe', 'Für alle Bilder'),
'inputType' => 'imageSize',
'options' => \System::getImageSizes(),
'reference' => &$GLOBALS['TL_LANG']['MSC'],
'eval' => array(
'rgxp' => 'digit',
'includeBlankOption' => true,
'tl_class' => 'w50 clr',
),
),
// DIE EINZELNEN SLIDES
'slides' => array(
'label' => array('Bild/er Slides', ''),
'elementLabel' => 'Bild/Slide %s',
'inputType' => 'list',
'fields' => array(
'image' => array(
'label' => array('Bild', ''),
'inputType' => 'fileTree',
'eval' => array(
'fieldType' => 'radio',
'filesOnly' => true,
'extensions' => \Config::get('validImageTypes'),
),
),
'alt' => array(
'label' => array('Alt-Tag', ''),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'mandatory' => true
),
),
),
),
),
);
TEMPLATE: