[TYPO3] Problem implementing nested menus in TypoScript

Peter Klein peter at umloud.dk
Tue Oct 3 16:09:51 CEST 2006


"Ricardo Pereira" <ricardo at tdwg.org> skrev i en meddelelse 
news:mailman.5286.1159882294.20124.typo3-english at lists.netfielders.de...
>    Hi all,
>
>    I'm trying to implement the menu below in Typo3 but I'm having trouble 
> coming up with the right TypoScript for it.
>
>    The main problems are that:
>
> 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).
> 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>
>
>    Any help is appreciated.

1) What's the problem?

2) Use "expAll = 1"
'If this is true, the menu will always show the menu on the level underneath 
the menuitem.'
For more info, see: 
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/10/7/

3) Try this:
NO.allWrap.dataWrap = <div><span><img src="tdwg01/animTree/menuicon.gif" 
title="click to toggle menu" alt="{field:title}" />|</span></div>

For more info, see: 
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/10/8/
and 
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/5/1/


-- 
Peter Klein/Umloud Untd





More information about the TYPO3-english mailing list