PHP-Code:
<?php
// rsce_service_config.php
return array(
'label' => array(
'de' => array(
'Leistungen',
'Eine Liste von Dienstleistungen mit Titel, Kurzbeschreibung uvm.',
),
'en' => array(
'Services',
'A list of services with title, short description and more.',
),
),
'types' => array('content'),
'contentCategory' => 'texts',
'standardFields' => array('cssID'),
'fields' => array(
'services' => array(
'label' => array(
'de' => array(
'Leistungen',
'Fügen Sie eine beliebige Anzahl an Dienstleistungen ein.',
),
'en' => array(
'Services',
'Add any number of services.',
),
),
'elementLabel' => array(
'de' => 'Leistung %s',
'en' => 'Service %s',
),
'inputType' => 'list',
'fields' => array(
'service-title' => array(
'label' => array(
'de' => array('Titel', 'Titel der Leistung'),
'en' => array('Title', 'Title of service'),
),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'mandatory' => true,
'allowHtml' => true,
),
),
'service-subtitle' => array(
'label' => array(
'de' => array('Untertitel', 'Untertitel der Leistung'),
'en' => array('Subtitle', 'Subtitle of service'),
),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
'mandatory' => true,
'allowHtml' => true,
),
),
'image' => array(
'label' => array(
'de' => array('Bild', 'Bild der Leistung'),
'en' => array('Picture', 'Picture of service'),
),
'inputType' => 'fileTree',
'eval' => array(
'fieldType' => 'radio',
'filesOnly' => true,
'extensions' => 'jpg,jpeg,png,gif,svg',
),
),
'service-shortdesc' => array(
'label' => array(
'de' => array('Kurzbeschreibung', 'Kurzbeschreibung der Leistung'),
'en' => array('Short description', 'Short description of service'),
),
'inputType' => 'text',
'eval' => array(
'tl_class' => 'w50',
),
),
'service-link' => array(
'label' => array(
'de' => array('Link', 'Link auswählen'),
'en' => array('Link', 'Choose link'),
),
'inputType' => 'url',
),
),
),
),
);
Und eine
Lesezeichen