Commit 71edc834 authored by Sven Rhinow's avatar Sven Rhinow

Fix: alt->neu

parent bda04a25
......@@ -11,13 +11,14 @@
*/
$GLOBALS['TL_DCA']['tl_module']['palettes']['__selector__'] = array_merge( $GLOBALS['TL_DCA']['tl_module']['palettes']['__selector__'], array('srl_set_cookie', 'srl_set_jsoptions'));
$GLOBALS['TL_DCA']['tl_module']['palettes']['__selector__'] = array_merge( $GLOBALS['TL_DCA']['tl_module']['palettes']['__selector__'], array('srl_set_cookie','srl_set_cookieaction', 'srl_set_jsoptions'));
$GLOBALS['TL_DCA']['tl_module']['palettes']['srlayer'] = 'name,type;{layer_legend},srl_content;{htmlcss_legend},srl_template,srl_css_file;{show_legend},srl_no_param,srl_set_mkLinkEvents,srl_substr,srl_delay,srl_start,srl_stop;{session_legend},srl_set_session;{cookie_legend},srl_set_cookie;{expert_legend:hide},srl_hideOverlay;{js_legend:hide},srl_set_jsoptions';
$GLOBALS['TL_DCA']['tl_module']['palettes']['srlayer'] = 'name,type;{layer_legend},srl_content;{htmlcss_legend},srl_template,srl_css_file;{show_legend},srl_no_param,srl_set_mkLinkEvents,srl_substr,srl_delay,srl_start,srl_stop;{session_legend},srl_set_session;{cookie_legend},srl_set_cookie,srl_set_cookieaction;{expert_legend:hide},srl_hideOverlay;{js_legend:hide},srl_set_jsoptions';
$GLOBALS['TL_DCA']['tl_module']['subpalettes'] = array_merge($GLOBALS['TL_DCA']['tl_module']['subpalettes'],
array(
'srl_set_cookie' => 'srl_cookie_name,srl_cookie_dauer',
'srl_set_cookieaction' => 'srl_cookieaction_name',
'srl_set_jsoptions' => 'srl_set_overLayID,srl_set_layerID,srl_set_closeID,srl_set_closeClass,srl_set_duration,srl_set_closePerEsc,srl_set_closePerLayerClick,srl_option_other'
)
);
......@@ -99,9 +100,25 @@ array_insert($GLOBALS['TL_DCA']['tl_module']['fields'] , 2, array
'eval' => array('submitOnChange'=>true),
'sql' => "char(1) NOT NULL default ''"
),
'srl_cookie_name' => array
'srl_cookie_name' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['srl_cookie_name'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('mandatory'=>false,'maxlength'=>55, 'tl_class'=>'w50'),
'sql' => "varchar(55) NOT NULL default ''"
),
'srl_set_cookieaction' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['srl_set_cookieaction'],
'exclude' => true,
'inputType' => 'checkbox',
'eval' => array('submitOnChange'=>true),
'sql' => "char(1) NOT NULL default ''"
),
'srl_cookieaction_name' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['srl_cookie_name'],
'label' => &$GLOBALS['TL_LANG']['tl_module']['srl_cookieaction_name'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('mandatory'=>false,'maxlength'=>55, 'tl_class'=>'w50'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment