[Typo3] Top menu level2 problem
Michael Scharkow
mscharkow at gmx.net
Tue Aug 16 21:40:02 CEST 2005
Марко Росић wrote:
> I can't make mu level 2 pages show up in top menu. Here is the code... First
> level shows up perfectly.
I'm not sure if I got you right, but your menu only has one level
(although it starts at level 1 because of entryLevel). If you want an
additional level, you have to define it
> temp.header = COA
> temp.header {
> 10 = TEXT
> 10.value = {page:title}
> 10.insertData = 1
> 10.wrap = <h1> | </h1>
>
> 20 < plugin.tx_srlanguagemenu_pi1
> 20.languagesUidsList = 2
> 20.defaultLayout = 2
>
> 30 = HMENU
> 30.entryLevel = 1
>
> 30.1 = TMENU
> 30.1 {
> noBlur = 1
> CUR = 1
> wrap = <ul> | </ul>
> }
>
> 30.1.NO {
> allWrap = <li> | </li>
> stdWrap.htmlSpecialChars = 1
> }
>
> 30.1.CUR {
> allWrap = <li> | </li>
> stdWrap.htmlSpecialChars = 1
> }
#add this for an identical second level
30.2 < 30.1
> }
Cheers, Michael
PS: If you want a simple nested list menu, try this snippet which goes
down 4 levels:
lib.listmenu = HMENU
lib.listmenu {
1 = TMENU
1 {
wrap = <ul>|</ul>
noBlur = 1
NO {
wrapItemAndSub = <li>|</li>
ATagTitle.field = description // title
}
CUR < .NO
CUR = 1
CUR.ATagParams = class="selected"
}
2 < .1
3 < .1
4 < .1
}
More information about the TYPO3-english
mailing list