[TYPO3-english] TMENU IFSUBSUB - Special action if menu-item has Sub-Sub Pages

Ansgar Brauner ansgarb at gmail.com
Thu Feb 4 15:18:21 CET 2010


Thanks Joey,

that worked. Until the decision raise up that there should be a switch
to enable a menu on the third level or not.

But this is something for another post :-)

Thank you

regards

Ansgar

JoH asenau schrieb:
>> I thought it would maybe possible through LOAD_REGISTER.
> 
> Well - it is possible ;-)
> You just have to use a menu as cObject for the allWrap part.
> This menu has to be generated based on the uid of the 1st level page and
> just fill the a register that is set to 0 in the beginning.
> I will show you just the IFSUB part of the first level, since this will be
> always true, if there is a third level available.
> I guess you can find out how to do the rest.
> 
> 1 = TMENU
> 1 {
>   IFSUB {
>     allWrap.cObject = COA
>     allWrap.cObject {
>        5 = LOAD_REGISTER
>        5.thirdLevel = 0
>       10 = HMENU
>       10 {
>         special = directory
>         special.value.field = uid
>         1 = TMENU
>         1 {
>             expAll = 1
>             NO.doNotShowLink = 1
>          }
>         2 = TMENU
>         2 {
>             expAll = 1
>             NO {
>               doNotLinkIt = 1
>               stdWrap.cObject = LOAD_REGISTER
>               stdWrap.cObject.thirdLevel = 1
>             }
>          }
>       }
>       20 = CASE
>       20 {
>         key.data = register:thirdLevel
>         default = TEXT
>         default.value = <li class="default">|
>         1 = TEXT
>         1.value = <li class="third_level">|
>       }
>     }
>     wrapItemAndSub = |</li>
>   }
> }
> 
> HTH
> 
> Joey
> 


More information about the TYPO3-english mailing list