PHP-Code:
$GLOBALS['TL_DCA']['tl_xreferenzen'] = array
(
// Config
'config' => array
(
'dataContainer' => 'Table',
'enableVersioning' => true
),
// List
'list' => array
(
'sorting' => array
(
'mode' => 1,
'fields' => array('sorting'),
'flag' => 1,
'panelLayout' => 'filter;search,limit'
),
'label' => array
(
'fields' => array('kunde', 'link'),
'format' => '%s <span style="color:#b3b3b3; padding-left:3px;">[%s]</span>'
),
'global_operations' => array
(
'all' => array
(
'label' => &$GLOBALS['TL_LANG']['MSC']['all'],
'href' => 'act=select',
'class' => 'header_edit_all',
'attributes' => 'onclick="Backend.getScrollOffset();"'
)
),
'operations' => array
(
'edit' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['edit'],
'href' => 'act=edit',
'icon' => 'edit.gif'
),
'copy' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['copy'],
'href' => 'act=copy',
'icon' => 'copy.gif'
),
'cut' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['cut'],
'href' => 'act=paste&mode=cut',
'icon' => 'cut.gif',
'attributes' => 'onclick="Backend.getScrollOffset();"',
//'button_callback' => array('tl_xreferenzen', 'cutReferenz')
),
'delete' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['delete'],
'href' => 'act=delete',
'icon' => 'delete.gif',
'attributes' => 'onclick="if (!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\')) return false; Backend.getScrollOffset();"'
),
'show' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['show'],
'href' => 'act=show',
'icon' => 'show.gif'
)
)
),
// Palettes
'palettes' => array
(
'__selector__' => array(''),
'default' => 'kunde,link;bild_klein;bild_groß;projekt;sorting;neu', //Gruppeirung durch ; und ,
),
// Subpalettes
'subpalettes' => array
(
'' => ''
),
// Fields
'fields' => array
(
'kunde' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['kunde'],
'inputType' => 'text',
'search' => true,
'eval' => array('mandatory'=>true, 'maxlength'=>250) //mandatory = Pflichtfeld
),
'link' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['link'],
'inputType' => 'text',
'search' => true,
'eval' => array('mandatory'=>true, 'maxlength'=>250)
),
'bild_klein' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['image_klein'],
'inputType' => 'fileTree',
'eval' => array('files'=>true, 'fieldType'=>'radio')
),
'bild_groß' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['image_groß'],
'inputType' => 'fileTree',
'eval' => array('files'=>true, 'fieldType'=>'radio')
),
'projekt' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['projekt'],
'inputType' => 'select',
'options_callback' => array('tl_xreferenzen', 'optionfields')
),
'neu' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_xreferenzen']['neu'],
'inputType' => 'checkbox'
)
)
);
An was leigt das?
Lesezeichen