Use custom generate alias callback.

This commit is contained in:
David Molineus
2015-02-03 18:04:05 +01:00
parent c3d5f47086
commit a21ba59001
9 changed files with 51 additions and 8 deletions

View File

@@ -174,7 +174,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array
'exclude' => true,
'inputType' => 'text',
'save_callback' => array(
\Netzmacht\Contao\Toolkit\Dca::createGenerateAliasCallback('tl_leaflet_icon', 'title'),
\Netzmacht\Contao\Leaflet\Dca\Helper::createGenerateAliasCallback('tl_leaflet_icon', 'title'),
),
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
'sql' => "varchar(255) NOT NULL default ''"