[TYPO3-dev] Replacing/disabling Core Toolbar Items...

Stig Nørgaard Færch stig at 8620.dk
Sun Jan 20 12:06:54 CET 2008


Ingo Renner skrev:
> Stig Nørgaard Færch wrote:
> 
> Hi Stig,
> 
>> So my which is that it should be possible to replace the Core Toolbar 
>> Items somehow.
>> Or it should be possible to disable a Core Toolbar Item and add 
>> another one through an extension in the same spot as the disabled one.
> 
> 
> first you need to register a file from your extension this hook:
> $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'] 
> (add your file as a new array entry)
> 
> then you can add new toolbar items using 
> $GLOBALS['TYPO3backend']->addToolbarItem($toolbarItemName, 
> $toolbarItemClassReference)
> 
> you can use the same method to overwrite existing (core) toolbar items. 
> just use the same $toolbarItemName as the item you want to replace.

Cool!
Thanks :-)

/Stig




More information about the TYPO3-dev mailing list