Add layer group support.

This commit is contained in:
David Molineus
2015-01-07 12:13:26 +01:00
parent 9e1c8499f2
commit b47e6ccb8a
4 changed files with 107 additions and 12 deletions

View File

@@ -127,6 +127,9 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
'+title' => array('markerCluster'),
'+active' => array('deferred')
),
'group extends default' => array(
'+title' => array('groupType'),
) ,
),
'metasubselectpalettes' => array(
@@ -263,5 +266,21 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
'eval' => array('tl_class' => 'w50', 'submitOnChange' => false),
'sql' => "char(1) NOT NULL default ''"
),
'groupType' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupType'],
'exclude' => true,
'inputType' => 'select',
'eval' => array(
'mandatory' => true,
'tl_class' => 'w50',
'submitOnChange' => true,
'helpwizard' => true,
),
'default' => 'layer',
'options' => array('layer', 'feature'),
'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['groupTypes'],
'sql' => "varchar(32) NOT NULL default ''"
),
)
);