[Typo3] HMENU / TMENU wrap problem

Christopher bedlamhotel at gmail.com
Sat May 28 01:47:57 CEST 2005


> Sorry, but I have to step in here, before it's getting really weird.
> 
> You need two wraps of the TMENUITEM + dataWrap here.
> wrapItemAndSub -> will enclose the item and the submenu with the trailing
> </div>
> allWrap -> has stdWrap properties to get the "id" into the leading <div>
> 
> The stuff in the second menu is completely wrong.
> "before" is simple HTML and/or stdWrap properties.
> after is useless here. allWrap will do.
> 
> temp.menu_3 = HMENU
> temp.menu_3 {
>     1 = TMENU
>     1 {
>         expAll = 1
>         NO {
>             doNotShowLink = 1
>             allWrap.cObject = TEXT
>             allWrap.cObject {
>                 dataWrap = <div "{field:uid}Menu">|
>            }
>             wrapItemAndSub = |</div>
>         }
>     }
> 
>     2 = TMENU
>     2 {
>         noBlur = 1
>         NO {
>             before = <img
> src="/fileadmin/template/main/images/green_sq_bullet.gif"
> class="menu_bullet" />
>             allWrap = |<br />
>         }
>     }
> }
> 
> tested and working


You're correct, thanks for reading the original post properly and
pointing out the problems in my response. I totally missed that the
top level div wraps were effectively a menu without links (plus
mistaking wrap for stdWrap.) Hoo boy...


-Christopher



More information about the TYPO3-english mailing list