[TYPO3-core] RFC: #10947: It's not possible to add buttons to docheader

Steffen Kamper info at sk-typo3.de
Sat Jun 27 11:11:49 CEST 2009


Hi Ingo,

Ingo Renner schrieb:
> 
> Hi Steffen,
> 
> although this has been committed already I think it'd be better to add a 
> method "addButtonToDocHeader()" to the template class instead of 
> introducing a new hook. Hooks are quite problematic once it comes to 
> refactoring...
> 
> What do you think?
> 

the hook is fine if you manipulate docheaderbuttons, means: 
remove/add/reorder etc
This is useful for any dynamic manipulation and imho worth.
Your suggestion could be done additionally for the case that a submodule 
adds own buttons to the existing ones.

vg Steffen


More information about the TYPO3-team-core mailing list