"New Element" und Add Element Buttons löschen in Artikel
Ich will zwei buttons löschen in der Backend. Aber klappt nicht. Ich kann nicht der Richtige operations finden. Er ist keine "paste" / "pastenew" oder "create" operations für article Modul.
Meine Quelle:
Code:
// remove delete, copy operations
// todo find out what show / toggle does and disable adding new elements so the
// user can only edit existing content elements of the base page
$GLOBALS['TL_DCA']['tl_article']['list']['operations']['copy']['button_callback'] = array('WikiContentAccess', 'removeButton');
$GLOBALS['TL_DCA']['tl_article']['list']['operations']['cut']['button_callback'] = array('WikiContentAccess', 'removeButton');
$GLOBALS['TL_DCA']['tl_article']['list']['operations']['delete']['button_callback'] = array('WikiContentAccess', 'removeButton');
$GLOBALS['TL_DCA']['tl_article']['list']['operations']['toggle']['button_callback'] = array('WikiContentAccess', 'removeButton');
$GLOBALS['TL_DCA']['tl_article']['list']['operations']['show']['button_callback'] = array('WikiContentAccess', 'removeButton');
Meine Idee ist es, eine Master-Seite ohne die Möglichkeit neue Elementen zufügen.