[TYPO3] If main menu doesn't have a submenu ... ?

Elijah Alcantara elijah.alcantara at gmail.com
Tue May 15 04:36:15 CEST 2007


Hi,

That works perfectly and that's exactly what I needed, many thanks! =)


Elijah

> Well - this is not the scenario for the use of "if" but for "override".
> The override property will only override the current content, if there is
> some content in the overriding object. So you could do it like this:
>
> temp.siblingMenu = HMENU
> temp.siblingMenu {
>     entryLevel = -2
>     1 = TMENU
>     1 {
>         wrap = <ul>|</ul>
>         NO {
>             allWrap = <li>|</li>
>         }
>     }
> }
>
> temp.subpageMenu < temp.siblingMenu
> temp.subpageMenu {
>     entryLevel = -1
> }
>
> temp.mySwitchingMenu = COA
> temp.mySwitchingMenu {
>     10 < temp.siblingMenu
>     stdWrap.override.cObject < temp.subpageMenu
> }
>
> This will generate a menu with the siblings of the current page in section
> 10 of the COA.
> Then it will override the whole COA with a menu of the subpages of the
> current page but only if there is content in the subpageMenu.
> Just be sure to only wrap the TMENU and TMENUITEM parts but not the HMENU
> since this would always return at least the wrap as a content.
>
> 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
> openBC/Xing: http://www.cybercraft.de
> T3 cookbook: http://www.typo3experts.com
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


-- 
Elijah O. Alcantara
http://elijah.pinoguin.com
Web/Typo3 Developer, Sys/Net Administrator & Support
PHP Development ApS
http://phpdev.dk


More information about the TYPO3-english mailing list