[TYPO3] tmenu on submenu items

Peter Klein peter at umloud.dk
Mon Dec 18 14:09:52 CET 2006


Hi Dave.
If you are using the example code you provided, then you'll end up with some 
code that doesn't validate.
When you do a:

NO.allWrap = <div id="nav_menu"> |</div>

Then EVERY menuitem will be wrapped in the above div, and all will have 
id="nav_menu" which is not valid..
And your menu will be vertical, due to the DIVs. (Unless you are floating 
the divs?)

-- 
Peter Klein/Umloud Untd

"dave typo" <typothree at gmail.com> skrev i en meddelelse 
news:mailman.25563.1166446652.21325.typo3-english at lists.netfielders.de...
> yeah thanks it works, heres the actual code:
>
>
> lib.topMenu = HMENU
> lib.topMenu.1 = TMENU
> lib.topMenu.special = list
> lib.topMenu.special.value = 207, 209, 210, 211, 212
> lib.topMenu.1 {
> NO.allWrap = <div id="nav_menu"> |</div>
> NO.Wrap.htmlSpecialChars = 1
> }
>
>
> scept its vertical, when i need it to be horizontal - i have identical
> code on another template, and it is horizontal there. Would this be a
> html problem, or is it a typoscript problem - i mean, the TS is
> identical.
>
> -dave
>
> On 12/18/06, JoH asenau <info at cybercraft.de> wrote:
>> > For example, if this is my hierarchy:
>> >
>> > pageone (id 1)
>> >        pagetwo (id 2)
>> >        pagethree (id 3)
>> >        pagefour (id 4)
>> >
>> > how would i make it so that a menu shows id's 2, 3 and 4 only?
>> >
>> > I thought this would work:
>> >
>> >
>> > lib.topMenu = TMENU
>> > lib.topMenu = HMENU
>> > lib.topMenu.special = list
>> > lib.topMenu.special.value = 2, 3, 4
>> > lib.topMenu.1 {
>> > NO.allWrap <div id="nav_menu"> |</div>
>> > NO.Wrap.htmlSpecialChars = 1
>> > }
>> >
>> > but doesn't.
>> >
>> > thanks for the help!
>>
>> 1.) TMENU has to be a part of HMENU
>> 2.) Use directory instead of list
>>
>> lib.topMenu = HMENU
>> lib.topMenu {
>>     special = directory
>>     special.value = 1
>>     1 = TMENU
>>     1 {
>>         NO {
>>             blah
>>         }
>>     }
>> }
>>
>> Joey
>>
>> --
>> Wenn man keine Ahnung hat: Einfach mal Fresse halten!
>> (If you have no clues: simply shut your knob sometimes!)
>> Dieter Nuhr, German comedian
>> openBC/Xing: http://www.cybercraft.de
>> T3 cookbook: http://www.typo3experts.com
>>
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>> 




More information about the TYPO3-english mailing list