[TYPO3-dev] HMENU headach
Éric Thibault
Eric.Thibault at dc.ulaval.ca
Wed May 12 18:05:37 CEST 2010
I have a simple problem but with 2 days of research... no clues! What I want is to generate a menu with 2 specific branches always open... To do that, I used « alwaysActivePIDlist » but the stangest thing happened! My second level pages are duplicated !
Could someone point me in the right direction?
Here is my page structure that I want to display :
Page 1
Page 1.1
Page 1.2
Page 2
Page 3
Page 3.1
Page 3.2
Page 3.3
Here is what my TS displays :
Page 1
Page 3.1
Page 3.2
Page 3.3
Page 2
Page 3
Page 3.1
Page 3.2
Page 3.3
Here is my TS
lib.menu = HMENU
lib.menu.alwaysActivePIDlist = 1,3
lib.menu.entryLevel = 1
lib.menu.stdWrap {
required = 1
wrap = <div id="menu_left"><ul class="level1">|</ul></div>
}
lib.menu.1 = TMENU
lib.menu.1 {
expAll = 1
wrap = |
NO {
allWrap = <li>|</li>
}
ACT {
allWrap = <li class="act">|</li>
}
ACTIFSUB {
allWrap = <li class="actifsub">|</li>
doNotLinkIt = 1
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.typolink.parameter.field = uid
10.typolink.returnLast = url
10.wrap = <a href="|">
20 = TEXT
20.field = title
30 = TEXT
30.wrap = |</a>
50 = HMENU
50.entryLevel = 2
50.1 = TMENU
50.1 {
expAll = 1
wrap = <ul class="level2">|</ul>
NO {
allWrap = <li class="no">|</li>
stdWrap.htmlSpecialChars = 1
}
ACT {
allWrap = <li class="act">|</li>
stdWrap.htmlSpecialChars = 1
}
ACT = 1
}
}
}
ACTIFSUB = 1
ACT < .ACTIFSUB
ACT = 1
ACT.allWrap = <li class="act"> | </li>
}
More information about the TYPO3-dev
mailing list