Ongoing development.

This commit is contained in:
David Molineus
2015-01-05 12:25:46 +01:00
parent 74a4d79aa0
commit be9060795d
25 changed files with 472 additions and 33 deletions

View File

@@ -20,7 +20,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
'mode' => 5,
'fields' => array('title'),
'flag' => 1,
'icon' => 'system/modules/leaflet/assets/img/layers.png'
'icon' => 'system/modules/leaflet/assets/img/layers.png',
'paste_button_callback' => array('Netzmacht\Contao\Leaflet\Dca\Layer', 'getPasteButtons'),
),
'label' => array
(
@@ -29,6 +30,13 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
),
'global_operations' => array
(
'map' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['map'],
'href' => 'table=tl_leaflet_map',
'icon' => 'system/modules/leaflet/assets/img/leaflet.png',
'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="m"'
),
'all' => array
(
'label' => &$GLOBALS['TL_LANG']['MSC']['all'],
@@ -51,6 +59,13 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
'href' => 'act=copy',
'icon' => 'copy.gif'
),
'cut' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['cut'],
'href' => 'act=paste&mode=cut',
'icon' => 'cut.gif',
'attributes' => 'onclick="Backend.getScrollOffset()"',
),
'delete' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['delete'],
@@ -129,7 +144,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
'submitOnChange' => true,
'chosen' => true,
),
'options' => &$GLOBALS['LEAFLET_LAYERS'],
'options' => array_keys($GLOBALS['LEAFLET_LAYERS']),
'sql' => "varchar(32) NOT NULL default ''"
),
'tile_provider' => array(