I'm stumped. Please can a developer look at my code to check it. I'm short of publishing a little CE_Wrapper extension, which makes start/stop wrappers a breeze (instead of using HTML elements). However when I click on the wrapType radio button to change it to "stop", it reloads and it doesn't do anything (e.g. the field list must change and it must remove "cssID" and "space" but it doesn't - it keeps the "wrapstart" palette. Hmm... I checked it against the mooType (backend) and also again another extension tabcontrol.
Perhaps my words wrapstart and wrapend are reserved words or something?
Code:
/**
* Table tl_content
*/
$GLOBALS['TL_DCA']['tl_content']['palettes']['__selector__'][] = 'wrapType';
$GLOBALS['TL_DCA']['tl_content']['palettes']['wrap'] = '{type_legend},type,wrapType';
$GLOBALS['TL_DCA']['tl_content']['palettes']['wrapstart'] = '{type_legend},type,wrapType;{protected_legend:hide},protected;{expert_legend:hide},guests,invisible,cssID,space';
$GLOBALS['TL_DCA']['tl_content']['palettes']['wrapstop'] = '{type_legend},type,wrapType;{protected_legend:hide},protected;{expert_legend:hide},guests,invisible';
// Fields
$GLOBALS['TL_DCA']['tl_content']['fields']['wrapType'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_content']['wrapType'],
'default' => 'start',
'exclude' => true,
'inputType' => 'radio',
'options' => array('start', 'stop'),
'reference' => &$GLOBALS['TL_LANG']['tl_content']['wrapTypes'],
'eval' => array('helpwizard'=>true, 'submitOnChange'=>true)
);
Bookmarks