[TYPO3] text menu - current state AND subpages
Tyler Kraft
headhunterxiii at yahoo.ca
Wed Jan 31 11:34:40 CET 2007
Are you sure that you don't need to use something like the
wrapItemAndSub property and the IFSUB, ACTIFSUB, CURIFSUB?
Something like
1 = TMENU
1 {
wrap = <ul id="nav">|</ul>
expAll = 0
noBlur=1
NO {
allWrap=<li class="inactive">|</li>
ATagParams = class="inactive"
}
CUR=1
CUR {
allWrap=<li class="inactive">|
ATagParams = class="active"
}
CURIFSUB=1
CURIFSUB {
allWrap=<li class="active">|
ATagParams = class="active"
}
ACT=1
ACT < .CURIFSUB
}
Andrea Giorgini wrote:
> Hi,
>
> this is the first level of my menu:
>
> ### FIRST LEVEL ###
> 1 = TMENU
> 1 {
> wrap = <ul id="nav">|</ul>
> expAll = 0
> noBlur=1
> CUR=1
> ACT=1
> NO {
> allWrap=<li class="inactive">|</li>
> ATagParams = class="inactive"
> }
> CUR {
> allWrap=<li class="active">|
> ATagParams = class="active"
> }
> ACT < .CUR
>
>
> }
>
> which works fine except for a little thing: I need a definition like
> "the current item should be wrapped with <li class="inactive">|</li>
> ONLY if there are no subpages (of the current item, not in general... so
> IFSUB here will not help right?); else the wrap should be <li
> class="active">|".
>
> Is that possible?
>
> Thx a lot
>
> Andrea
More information about the TYPO3-english
mailing list