[TYPO3-core] RFC: Feature #6779 (tabbed menu as separate file)

Malte Jansen mail at maltejansen.de
Wed Nov 21 14:06:49 CET 2007


Tapio Markula schrieb:
> Malte Jansen
>> But you forgot the parameters... 
> 
> I put always the same parameters.
> 
> But I found that template.php must have
> 
>     function getDynTabMenuId($identString) {
>         $id = 'DTM-'.t3lib_div::shortMD5($identString);
>         return $id;
>     }
>     
>     function 
> icons($type,$styleAttribValue='',$backPath='',$skinImage=true)    {
>         
> t3lib_iconWorks::icons($type,$styleAttribValue,$backPath,$skinImage);
>     }
> 
> because extesion classes inside template.php need them.
> 
> 
> 
> class.t3lib_tabmenus.php had two syntax errors related with
> 
>     // control layout - table wrappers or without wrappers - wrappers 
> make possible to create rounded background images for tabs
>         if(isset($conf['useWrappertable'])) // this is for frontend 
> plugins - so must have priority
>             $useWrappertable=$conf['useWrappertable'];
>         
> elseif(isset($this->modSharedTSconfig['properties']['useWrappertable']))
>          
> $useWrappertable=$this->modSharedTSconfig['properties']['useWrappertable'];
>         
> elseif(isset($this->PageTSConfig['mod.']['SHARED.']['useWrappertable']))
>          
> $useWrappertable=$this->PageTSConfig['mod.']['SHARED.']['useWrappertable'];

You did not get it...

You remove this part from the tceforms (search in the trunk-version):
$GLOBALS['TBE_TEMPLATE']->getDynTabMenu($parts, $idString, 0, FALSE, 50, 
1, FALSE, 1, $this->dividers2tabs);

You need these Parameters to call the moved 
t3lib_tabmenus::getDynTabMenu. If you remove something you must put it 
somewhere else, otherwise it does not work correct.

Please, check it on running system. Please, submit only patches which 
you have tested.

This is my last answer to this thread.

Cheers,

Malte



More information about the TYPO3-team-core mailing list