[Typo3] Display second level pages in a menu
Andreas Förthner
Andreas.Foerthner at netlogix.de
Wed Aug 17 15:39:43 CEST 2005
Jan Hancic wrote:
> Hi list,
>
> I would like to have a menu on my page that would display subpages of the current page.
> I have a two level structure and I display level one pages in a horizontal menu wich is working perfectly.
> So how do I add a menu that will display second level pages?
> I thought this would work:
>
> # LeftMenu
> temp.LeftMenu = HMENU
> temp.LeftMenu.2 = TMENU
> temp.LeftMenu.2 {
> NO.allWrap = <li><span class="LeftMenuActive"> | </span></li>
>
> ACT = 1
> ACT.allWrap = <li><span class="LeftMenu"> | </span></li>
> }
>
> but id does not. It simply dosen't display anything.
> I have searched the typo3 site and google, but I couldn't find any examples or documentation that would solve my probblem.
>
>
> lp
> Jan
Hi,
just look at this code, it does work in my installation:
lib.subnav = HMENU
lib.subnav {
entryLevel = 1
1 = TMENU
1.target = _self
1.wrap = <table cellpadding="0" cellspacing="0" border="0"><tr> |
</tr></table>
1.expAll = 1
1 {
NO.linkWrap = <tr><td class="subnav"> | </td></tr>
}
2 = TMENU
2.target = _self
2 {
NO.linkWrap = <tr><td class="subsubnav"> | </td></tr>
}
}
hey, why do you use class="LeftMenuActive" for the normal status? ;-)
hope this helps..
greets
andreas
More information about the TYPO3-english
mailing list