Add alias generator save callback.

This commit is contained in:
David Molineus
2015-01-09 17:43:38 +01:00
parent 023711980a
commit 9c48e4d202
7 changed files with 55 additions and 34 deletions

View File

@@ -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
(