PHP-Code:
<?php
// rsce_bildergalerie_config.php
return array(
'label' => array('Bildergalerie', 'Einige Bilder'),
'types' => array('content'),
'contentCategory' => 'texts',
'moduleCategory' => 'miscellaneous',
'standardFields' => array('cssID'),
'fields' => array(
'headline' => array(
'inputType' => 'standardField',
'label' => array('Überschrift',''),
'options' => array('h2', 'h3', 'h4', 'h5', 'h6', 'p'),
),
'sizes' => 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',
),
),
'slides' => array(
'label' => array('Bilder', ''),
'elementLabel' => 'Bild %s',
'inputType' => 'list',
'minItems' => 1,
'maxItems' => 8,
'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
),
),
'title' => array(
'label' => array('Title tag', ''),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'mandatory' => false
),
),
'caption' => array(
'label' => array('Bildunterschrift', ''),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'mandatory' => false
),
),
),
),
),
);
Das rsce_bildergalerie.html5 Template:
Lesezeichen