Hi,
I have a problem. I made a tree view with category and a child module. I can get an edit button for the module. But I want an edit button for category. See screenshot, where the edit button is missing.
The module is a type tl_module_prototype and the category is a tl_module_category. And this is the DCA for tl_module_prototype
Code:
$GLOBALS['TL_DCA']['tl_module_prototype'] = array
(
'config' => array (
'dataContainer' => 'table',
'ptable' => 'tl_module_category',
),
'list' => array (
'sorting' => array (
'mode' => 6,
'fields' => array('title'),
),
'label' => array (
'fields' => array ('title'),
'format' => "%s",
),
'global_operations' => array (
),
'operations' => array (
'edit' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_module_prototype']['edit'],
'href' => 'act=edit',
'icon' => 'edit.gif',
),
'delete' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_module_prototype']['delete'],
'href' => 'act=delete',
'icon' => 'delete.gif',
'attributes' => 'onclick="if (!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\')) return false; Backend.getScrollOffset();"',
),
),
),
);
How can I add an edit button to the category?
Bookmarks