[TYPO3-english] Extend menu only for subitems on a specific ID

Markus Kobligk markus at kobligk.de
Sat Feb 18 16:08:36 CET 2012


Hi Morten,

> [PIDinRootline = 166]
> lib.TOPMENU.4<  lib.TOPMENU.3
> lib.TOPMENU.4 {
>      wrap =<ul class="inner">|</ul>
>     NO.wrapItemAndSub =<li>|</li>|*|<li>|</li>|*|<li class="lastItem">|</li>
>    ATagParams.dataWrap = title="{field:title}"
>     IFSUB = 0
>
>    SPC = 1
>    SPC {
>      allWrap =<li><span class="spc-item-level4">|</span></li>
>    }
> }
> [end]
> But that doesn't work.

Try this (without the condition):

lib.TOPMENU.4 < lib.TOPMENU.3
lib.TOPMENU.4 {
   [your stuff here]

   stdWrap.if {
     equals.data = TSFE:id
     value = 166
   }
}

This should print the 4th level only on the page with the UID 166.

greetz,
Markus



More information about the TYPO3-english mailing list