diff --git a/module/dca/tl_leaflet_control.php b/module/dca/tl_leaflet_control.php index c27cbed..932f315 100644 --- a/module/dca/tl_leaflet_control.php +++ b/module/dca/tl_leaflet_control.php @@ -150,12 +150,15 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array ), 'alias' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['alias'], - 'exclude' => true, - 'inputType' => 'text', - 'search' => true, - 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['alias'], + 'exclude' => true, + 'inputType' => 'text', + 'search' => true, + 'save_callback' => array( + \Netzmacht\Contao\DevTools\Dca::createGenerateAliasCallback('tl_leaflet_control', 'title'), + ), + 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), + 'sql' => "varchar(255) NOT NULL default ''" ), 'type' => array ( diff --git a/module/dca/tl_leaflet_icon.php b/module/dca/tl_leaflet_icon.php index f51a92e..eeb57f4 100644 --- a/module/dca/tl_leaflet_icon.php +++ b/module/dca/tl_leaflet_icon.php @@ -154,11 +154,14 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array ), 'alias' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['alias'], - 'exclude' => true, - 'inputType' => 'text', - 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_icon']['alias'], + 'exclude' => true, + 'inputType' => 'text', + 'save_callback' => array( + \Netzmacht\Contao\DevTools\Dca::createGenerateAliasCallback('tl_leaflet_icon', 'title'), + ), + 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), + 'sql' => "varchar(255) NOT NULL default ''" ), 'type' => array ( diff --git a/module/dca/tl_leaflet_layer.php b/module/dca/tl_leaflet_layer.php index 53fcf30..7d76bea 100644 --- a/module/dca/tl_leaflet_layer.php +++ b/module/dca/tl_leaflet_layer.php @@ -184,12 +184,15 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array ), 'alias' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['alias'], - 'exclude' => true, - 'inputType' => 'text', - 'search' => true, - 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['alias'], + 'exclude' => true, + 'inputType' => 'text', + 'search' => true, + 'save_callback' => array( + \Netzmacht\Contao\DevTools\Dca::createGenerateAliasCallback('tl_leaflet_map', 'title'), + ), + 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), + 'sql' => "varchar(255) NOT NULL default ''" ), 'type' => array ( diff --git a/module/dca/tl_leaflet_map.php b/module/dca/tl_leaflet_map.php index 321ca96..3d0b9c1 100644 --- a/module/dca/tl_leaflet_map.php +++ b/module/dca/tl_leaflet_map.php @@ -133,6 +133,9 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array 'exclude' => true, 'inputType' => 'text', 'search' => true, + 'save_callback' => array( + \Netzmacht\Contao\DevTools\Dca::createGenerateAliasCallback('tl_leaflet_map', 'title'), + ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), 'sql' => "varchar(255) NOT NULL default ''" ), diff --git a/module/dca/tl_leaflet_marker.php b/module/dca/tl_leaflet_marker.php index e95b2d0..ea7c5ca 100644 --- a/module/dca/tl_leaflet_marker.php +++ b/module/dca/tl_leaflet_marker.php @@ -148,12 +148,15 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array ), 'alias' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['alias'], - 'exclude' => true, - 'inputType' => 'text', - 'search' => true, - 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['alias'], + 'exclude' => true, + 'inputType' => 'text', + 'search' => true, + 'save_callback' => array( + \Netzmacht\Contao\DevTools\Dca::createGenerateAliasCallback('tl_leaflet_marker', 'title'), + ), + 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), + 'sql' => "varchar(255) NOT NULL default ''" ), 'coordinates' => array ( diff --git a/module/dca/tl_leaflet_style.php b/module/dca/tl_leaflet_style.php index c142560..c2baf95 100644 --- a/module/dca/tl_leaflet_style.php +++ b/module/dca/tl_leaflet_style.php @@ -134,11 +134,14 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = array ), 'alias' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['alias'], - 'exclude' => true, - 'inputType' => 'text', - 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'), - 'sql' => "varchar(255) NOT NULL default ''" + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_style']['alias'], + 'exclude' => true, + 'inputType' => 'text', + 'save_callback' => array( + \Netzmacht\Contao\DevTools\Dca::createGenerateAliasCallback('tl_leaflet_style', 'title'), + ), + 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), + 'sql' => "varchar(255) NOT NULL default ''" ), 'type' => array ( diff --git a/module/dca/tl_leaflet_vector.php b/module/dca/tl_leaflet_vector.php index beb2372..59fecaf 100644 --- a/module/dca/tl_leaflet_vector.php +++ b/module/dca/tl_leaflet_vector.php @@ -174,12 +174,15 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array ), 'alias' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['alias'], - 'exclude' => true, - 'inputType' => 'text', - 'search' => true, - 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['alias'], + 'exclude' => true, + 'inputType' => 'text', + 'search' => true, + 'save_callback' => array( + \Netzmacht\Contao\DevTools\Dca::createGenerateAliasCallback('tl_leaflet_vector', 'title'), + ), + 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), + 'sql' => "varchar(255) NOT NULL default ''" ), 'type' => array (