<?php /** * eSales Media One-Page toolkit for Contao Open Source CMS * * Copyright (C) 2015 eSales Media * * @package eSM_onePage * @link http://www.esales-media.de * @license commercial * * @author Benjamin Roth <benjamin@esales-media.de> */ /** * Table tl_content */ /** * Add palettes to tl_content */ $GLOBALS['TL_DCA']['tl_content']['palettes']['onepageStart'] = '{type_legend},type;{onepage_legend},eSM_op_valign,eSM_op_theme,eSM_op_scrollIndicator;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop'; $GLOBALS['TL_DCA']['tl_content']['palettes']['onepageStop'] = '{type_legend},type;{onepage_legend},eSM_op_scrollIndicator;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests;{invisible_legend:hide},invisible,start,stop'; /** * Add fields to tl_content */ $GLOBALS['TL_DCA']['tl_content']['fields']['eSM_op_theme'] = array ( 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_op_theme'], 'exclude' => true, 'inputType' => 'select', 'options' => array('theme-1','theme-2','theme-3','theme-4','theme-5'), 'eval' => array('tl_class'=>'w50','includeBlankOption'=>true), 'sql' => "varchar(32) NOT NULL default ''" ); $GLOBALS['TL_DCA']['tl_content']['fields']['eSM_op_valign'] = array ( 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_op_valign'], 'exclude' => true, 'inputType' => 'select', 'default' => 'top', 'options' => array('top','center','bottom'), 'reference' => $GLOBALS['TL_LANG']['REF']['onepage'], 'eval' => array('tl_class'=>'w50'), 'sql' => "varchar(32) NOT NULL default ''" ); $GLOBALS['TL_DCA']['tl_content']['fields']['eSM_op_scrollIndicator'] = array ( 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_op_scrollIndicator'], 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array('tl_class'=>'clr'), 'sql' => "char(1) NOT NULL default ''" );