Actions
Bug #18509
closedXCLASSing ToolbarItem does not work
Start date:
2008-03-28
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Because in backend.php there is no makeInstance of toolbarItemClasses xclassing is not possible.
adding
// get name of XCLASS (if any):
$toolbarItemClassName = t3lib_div::makeInstanceClassName($toolbarItemClassName);
does the trick, thx olly for the hint.
(issue imported from #M7954)
Files
Updated by Steffen Kamper over 16 years ago
second problem: private declare in class.clearcachemenu.php make it impossible to extend and add own items.
$cacheActions has to be public
$backendReference has to be protected.
with this change it's possible to add own items in extended class:
parent::__construct($backendReference);
$this->cacheActions[] = array(...);
second patch is attached.
Updated by Steffen Kamper over 16 years ago
i moved 2nd one and merged in #18512
Updated by Oliver Hader over 16 years ago
Committed to SVN TYPO3_4-2 (rev. 3484)
Actions