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

JoH asenau info at cybercraft.de
Thu Jan 28 22:24:26 CET 2010


> 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

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com




More information about the TYPO3-english mailing list