[TYPO3] Rendering menu into register
Katja Lampela
katja.lampela at lieska.net
Wed Sep 26 09:23:18 CEST 2007
Hi Thomas,
This works for me:
#FIRST LEVEL
subparts.LEFT = HMENU
subparts.LEFTNAV.1 = TMENU
subparts.LEFTNAV.1 {
expAll = 1
wrap = |
NO.allWrap = <YOURWRAP>|</YOURWRAP>
ACT = 1
ACT.allWrap = <YOURACTWRAP>|</YOURACTWRAP>
}
#SECOND LEVEL
subparts.LEFTNAV.2 = TMENU
subparts.LEFTNAV.2 < subparts.LEFTNAV.1
subparts.LEFTNAV.2 {
expAll = 1
NO.allWrap = <YOURWRAP>|</YOURWRAP>
ACT = 1
ACT.allWrap = <YOURACTWRAP>|</YOURACTWRAP>
}
and so on...
- Katja
Thomas Hempel kirjoitti:
> Hi,
>
> I have a problem which I can't solve by myself.
> The point is that I have a menu in three levels. Now I want to render
> every menu in not nested lists. Example:
>
> I have the following page tree:
>
> page 1
> page 1.1
> page 1.2
> page 1.2.1
> page 1.2.2
> page 1.3
> page 2
> page 2.1
> page 2.1.1
> page 2.1.2
> page 2.2
>
>
> That should become:
>
> <ul>
> <li>page 1</li>
> <li>page 2</li>
> </ul>
>
> <ul>
> <li>page 1.1</li>
> <li>page 1.2</li>
> <li>page 1.3</li>
> </ul>
>
> <ul>
> <li>page 2.1</li>
> <li>page 2.2</li>
> </ul>
>
> <ul>
> <li>page 1.2.1</li>
> <li>page 1.2.2</li>
> </ul>
>
> <ul>
> <li>page 2.1.1</li>
> <li>page 2.1.2</li>
> </ul>
>
> (with links and stuff of course)
>
> The order of the uls is very important. I thought of doing this with
> registers but I didn't make it work. I even tried to render each level
> in a separate HMENU object buit that doesn't work either.
>
> Has anybody an idea how I can achieve that result?
>
>
> Thanks and Greets,
> Thomas
>
More information about the TYPO3-english
mailing list