Initial survey bundle import
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Contao\CoreBundle\DataContainer\PaletteManipulator;
|
||||
|
||||
PaletteManipulator::create()
|
||||
->addLegend('survey_settings_legend', null, PaletteManipulator::POSITION_AFTER, true)
|
||||
->addField('surveyReaderPage', 'survey_settings_legend')
|
||||
->addField('surveyResultsPage', 'survey_settings_legend')
|
||||
->addField('surveyGotenbergUrl', 'survey_settings_legend')
|
||||
->applyToPalette('default', 'tl_settings');
|
||||
|
||||
$GLOBALS['TL_DCA']['tl_settings']['fields']['surveyReaderPage'] = [
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_settings']['surveyReaderPage'],
|
||||
'inputType' => 'pageTree',
|
||||
'eval' => ['fieldType' => 'radio', 'tl_class' => 'w50'],
|
||||
];
|
||||
|
||||
$GLOBALS['TL_DCA']['tl_settings']['fields']['surveyResultsPage'] = [
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_settings']['surveyResultsPage'],
|
||||
'inputType' => 'pageTree',
|
||||
'eval' => ['fieldType' => 'radio', 'tl_class' => 'w50'],
|
||||
];
|
||||
|
||||
$GLOBALS['TL_DCA']['tl_settings']['fields']['surveyGotenbergUrl'] = [
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_settings']['surveyGotenbergUrl'],
|
||||
'inputType' => 'text',
|
||||
'eval' => ['rgxp' => 'url', 'decodeEntities' => true, 'maxlength' => 255, 'tl_class' => 'w50 clr'],
|
||||
];
|
||||
Reference in New Issue
Block a user