Add deferred markers loading.

This commit is contained in:
David Molineus
2015-01-06 15:43:57 +01:00
parent 4e41cc3db3
commit b3d32fef46
3 changed files with 66 additions and 21 deletions

View File

@@ -108,6 +108,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
'default' => array(
'title' => array('title', 'alias', 'type'),
'active' => array('active'),
'expert' => array('deferred'),
),
'markers extends default' => array(
'+title' => array('markerCluster'),
@@ -240,5 +241,13 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
),
'sql' => "varchar(255) NOT NULL default ''"
),
'deferred' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['deferred'],
'exclude' => true,
'inputType' => 'checkbox',
'eval' => array('tl_class' => 'w50', 'submitOnChange' => false),
'sql' => "char(1) NOT NULL default ''"
),
)
);