inital commit based on contao skeleton bundle
This commit is contained in:
35
src/Resources/contao/dca/tl_content.php
Normal file
35
src/Resources/contao/dca/tl_content.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
$GLOBALS['TL_DCA']['tl_content']['subpalettes']['addMoreImages'] = 'multiSRC';
|
||||
$GLOBALS['TL_DCA']['tl_content']['subpalettes']['addImage'] .= ',addMoreImages';
|
||||
$GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'addMoreImages';
|
||||
|
||||
$GLOBALS['TL_DCA']['tl_content']['fields']['addMoreImages'] = array
|
||||
(
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_content']['addMoreImages'],
|
||||
'exclude' => true,
|
||||
'inputType' => 'checkbox',
|
||||
'eval' => array('submitOnChange'=>true),
|
||||
'sql' => "char(1) NOT NULL default ''"
|
||||
);
|
||||
$GLOBALS['TL_DCA']['tl_content']['fields']['multiSRC'] = array
|
||||
(
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_content']['multiSRC'],
|
||||
'exclude' => true,
|
||||
'inputType' => 'fileTree',
|
||||
'eval' => array
|
||||
(
|
||||
'multiple'=>true,
|
||||
'fieldType'=>'checkbox',
|
||||
'orderField'=>'orderSRC',
|
||||
'files'=>true,
|
||||
'mandatory'=>true,
|
||||
'isGallery'=>true,
|
||||
'extensions'=>Config::get('validImageTypes')
|
||||
),
|
||||
'sql' => "blob NULL"
|
||||
);
|
||||
$GLOBALS['TL_DCA']['tl_content']['fields']['orderSRC'] = array
|
||||
(
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_content']['orderSRC'],
|
||||
'sql' => "blob NULL"
|
||||
);
|
||||
Reference in New Issue
Block a user