[TYPO3] Problem implementing nested menus in TypoScript

Dmitry Dulepov dmitry at typo3.org
Tue Oct 3 15:56:53 CEST 2006


Hi!

Ricardo Pereira wrote:
> 1) I need to create 2 divs for each menu item that has subitems, one of 
> class "button" and the other "menu".
> 2) I don't know how to embed the nested levels when a menu has 
> sub-menus. That is, how can I embed the next level of menus inside the 
> 2nd div (the "menu" one).

It seems you need to wrap only when there is submenu. So look to IFSUB 
menu item state in TSRef.

> 3) This one is probably easy: how do I replace the link text in two 
> different places (using | ). For example, how do I fix the following TS 
> that I invented and doesn't work:
> 
> NO.doNotLinkIt = 1 # disable linking so it just uses the menu name as text
> NO.allWrap = <div><span><img src="tdwg01/animTree/menuicon.gif" 
> title="click to toggle menu" alt="|" />|</span></div>

This, I afraid, is not that easy... Try stdWrap and stdWrap2. I never 
tried them myself but according to description it may work like you want.

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)



More information about the TYPO3-english mailing list