Store layer relations in extra table.

This commit is contained in:
David Molineus committed 2015-01-09 22:33:57 +01:00
1 parent c7f37238d9
commit ff2c3fb8c3
12 files changed
+307 -29

No files matched your search

+7 -1
View File
@@ -163,9 +163,15 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array
'exclude' => true,
'inputType' => 'checkboxWizard',
'options_callback' => array('Netzmacht\Contao\Leaflet\Dca\Leaflet', 'getLayers'),
'default' => '',
'load_callback' => array(
array('Netzmacht\Contao\Leaflet\Dca\Map', 'loadLayerRelations'),
),
'save_callback' => array(
array('Netzmacht\Contao\Leaflet\Dca\Map', 'saveLayerRelations'),
),
'eval' => array(
'multiple' => true,
'doNotSaveEmpty' => true,
),
'sql' => "mediumblob NULL"
),