[TYPO3] show wrap only if menu has subpages

JoH asenau info at cybercraft.de
Thu Jul 26 19:45:45 CEST 2007


> I build a menu in TS and it works fine except one thing.
> I want to show the "obj.productmenu.20.wrap" only when there are
> subpages. Now it's showing the wrap all the time, also when there are
> no subpages, and that looks very ugly. Does anybody knows a solution
> for this?
>
>    20 = HMENU
>    20 {
>      wrap = <div class="productmenu"><ul>|</ul><br /><br /></div>
>      entryLevel = -2
>      1 = TMENU
>      1 {

Well - you should always wrap the TMENU not the HMENU, since it will
automatically remove the wrap, if there are no subpages.

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




More information about the TYPO3-english mailing list