Created
November 13, 2014 15:18
-
-
Save tim-bec/49969c60ea0e7a97927b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Contao Open Source CMS | |
* | |
* Copyright (c) 2005-2014 Leo Feyer | |
* | |
* @package wwLayerSlide | |
* @author WESTWERK GmbH & Co. KG <web@westwerk.ac> | |
* @license LGPL | |
* @copyright WESTWERK GmbH & Co. KG | |
*/ | |
/** | |
* Table tl_LayerSlide | |
*/ | |
$GLOBALS['TL_DCA']['tl_LayerSlide'] = array | |
( | |
// Config | |
'config' => array | |
( | |
'dataContainer' => 'Table', | |
'enableVersioning' => true, | |
'sql' => array | |
( | |
'keys' => array | |
( | |
'id' => 'primary' | |
) | |
) | |
), | |
// List | |
'list' => array | |
( | |
'sorting' => array | |
( | |
'mode' => 1, | |
'fields' => array(''), | |
'flag' => 1 | |
), | |
'label' => array | |
( | |
'fields' => array(''), | |
'format' => '%s' | |
), | |
'global_operations' => array | |
( | |
'all' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['MSC']['all'], | |
'href' => 'act=select', | |
'class' => 'header_edit_all', | |
'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"' | |
) | |
), | |
'operations' => array | |
( | |
'edit' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_LayerSlide']['edit'], | |
'href' => 'act=edit', | |
'icon' => 'edit.gif' | |
), | |
'copy' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_LayerSlide']['copy'], | |
'href' => 'act=copy', | |
'icon' => 'copy.gif' | |
), | |
'delete' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_LayerSlide']['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_LayerSlide']['show'], | |
'href' => 'act=show', | |
'icon' => 'show.gif' | |
) | |
) | |
), | |
// Select | |
'select' => array | |
( | |
'buttons_callback' => array() | |
), | |
// Edit | |
'edit' => array | |
( | |
'buttons_callback' => array() | |
), | |
// Palettes | |
'palettes' => array | |
( | |
'__selector__' => array(''), | |
'default' => '{title_legend},title{type_legend},type,headline;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop;' | |
), | |
// Subpalettes | |
'subpalettes' => array | |
( | |
'' => '' | |
), | |
// Fields | |
'fields' => array | |
( | |
'id' => array | |
( | |
'sql' => "int(10) unsigned NOT NULL auto_increment" | |
), | |
'tstamp' => array | |
( | |
'sql' => "int(10) unsigned NOT NULL default '0'" | |
), | |
'title' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_LayerSlide']['title'], | |
'exclude' => true, | |
'inputType' => 'text', | |
'eval' => array('mandatory'=>true, 'maxlength'=>255), | |
'sql' => "varchar(255) NOT NULL default ''" | |
), | |
'slidedelay' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_LayerSlide']['slidedelay'], | |
'inputType' => 'text', | |
'sql' => "int(10) unsigned NOT NULL default '0'" | |
), | |
'transition2d' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_LayerSlide']['transition2d'], | |
'inputType' => 'checkbox', | |
'sql' => "bool NULL default '1'" | |
), | |
'cssClass' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_news']['cssClass'], | |
'exclude' => true, | |
'inputType' => 'text', | |
'sql' => "varchar(255) NOT NULL default ''" | |
), | |
'featured' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_news']['featured'], | |
'exclude' => true, | |
'filter' => true, | |
'inputType' => 'checkbox', | |
'eval' => array('tl_class'=>'w50'), | |
'sql' => "char(1) NOT NULL default ''" | |
), | |
'published' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_news']['published'], | |
'exclude' => true, | |
'filter' => true, | |
'flag' => 1, | |
'inputType' => 'checkbox', | |
'eval' => array('doNotCopy'=>true), | |
'sql' => "char(1) NOT NULL default ''" | |
), | |
'start' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_news']['start'], | |
'exclude' => true, | |
'inputType' => 'text', | |
'eval' => array('rgxp'=>'datim', 'datepicker'=>true, 'tl_class'=>'w50 wizard'), | |
'sql' => "varchar(10) NOT NULL default ''" | |
), | |
'stop' => array | |
( | |
'label' => &$GLOBALS['TL_LANG']['tl_news']['stop'], | |
'exclude' => true, | |
'inputType' => 'text', | |
'eval' => array('rgxp'=>'datim', 'datepicker'=>true, 'tl_class'=>'w50 wizard'), | |
'sql' => "varchar(10) NOT NULL default ''" | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment