<?php /** * References for Contao * * Copyright (c) 2014 Benjamin Roth [http://www.esales-media.de] * * @package eSM_clients * @link http://www.esales-media.de * @license commercial */ /** * Table tl_module */ /** * Add palettes to tl_module */ $GLOBALS['TL_DCA']['tl_module']['palettes']['clientsShowcase'] = '{title_legend},name,headline,type;{config_legend},esm_numberOfItems,perPage;{reference_legend},jumpTo;{template_legend:hide},customTpl,esm_clientsShowcase_template;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space'; $GLOBALS['TL_DCA']['tl_module']['palettes']['clientsProject'] = '{title_legend},name,headline,type;{image_legend},imgSize,fullsize;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space'; /** * Add fields to tl_module */ $GLOBALS['TL_DCA']['tl_module']['fields']['esm_numberOfItems'] = array ( 'label' => &$GLOBALS['TL_LANG']['tl_module']['esm_numberOfItems'], 'default' => 0, 'exclude' => true, 'inputType' => 'text', 'eval' => array('mandatory'=>true, 'rgxp'=>'natural', 'tl_class'=>'w50'), 'sql' => "smallint(5) unsigned NOT NULL default '0'" ); $GLOBALS['TL_DCA']['tl_module']['fields']['esm_clientsShowcase_template'] = array ( 'label' => &$GLOBALS['TL_LANG']['tl_module']['esm_clientsShowcase_template'], 'default' => '_clientsShowcase_default', 'exclude' => true, 'inputType' => 'select', 'options_callback' => array('tl_module_esm_clients', 'getClientsShowcaseTemplates'), 'eval' => array('tl_class'=>'w50'), 'sql' => "varchar(32) NOT NULL default ''" );