[Typo3-dev] changing titel in menu from fe_plugin

Wolfgang Klinger wolfgang at stufenlos.net
Wed Feb 23 16:59:34 CET 2005


 Hi!

 On Wed, 23 Feb 2005, media.res | alex widschwendter wrote the following:
> should be a self installing feature. no chance to manipulate the default 
> menus?
> 
> any other ideas?

 sure... 
 simply overwrite "getPageTitle" of class tslib_menu,
-------
function getPageTitle($title,$nav_title)    {
    return strcmp(trim($nav_title),'') ? $nav_title : $title;
}
-------
 by XCLASSing or whatever...
 the only problem I see is that you have to get your custom title from
 somewhere... ;-)
 (as the menu is usually rendered before the content, but I may miss
 something here and haven't really thought long enough about all this)


 bye
 Wolfgang






More information about the TYPO3-dev mailing list