[TYPO3-english] Gifbuilder wrap problem

Loek Hilgersom hilgersom at xs4all.nl
Tue Dec 2 14:31:40 CET 2008


Hi Klaus,

GMENU is not so easy to play around with. What you want may be possible, but I 
have never figured out how to do it. For the kind of problem you describe I 
usually create a graphic menu based on TMENU, which gives you a lot more 
flexibility for creating the exact output you need.

lib.topnav = COA
lib.topnav {

   10 = HMENU
   10.entryLevel = 0
   10.1 = TMENU
   10.1 {

     noBlur = 1
     NO = 1
     NO {

       allWrap = <div>|</div>

       stdWrap.wrap = <span>|</span><span></span>
       stdWrap.cObject = IMAGE
       stdWrap.cObject.file = GIFBUILDER
       stdWrap.cObject.file {

         transparentBackground = 1
         backColor = #cccccc
         XY = [10.w]+11,38
         10 = TEXT
         10.text.field = nav_title // title
         10.fontColor = #000000
         10.offset = 5,24
         10.fontFile = fileadmin/templates/main/fonts/FRUTLTP.TTF
         10.fontSize = 10
       }
     }
   }
}


That should do it.
Hth,
Loek



klaus brinch wrote:
> Hi all
> 
> I have run into a problem i cant seem to solve with my knowledge of 
> Gmenu and TypoScript.
> 
> I want to achieve this with gifbuilder:
> 
> <div><a href="#"><span>my text for gifbuilder</span><span></span></a></div>
> 
> What i have in my Typoscript is this:
> 
> lib.topnav = COA
> lib.topnav {
> 
>   10 = HMENU
>   10.entryLevel = 0
>   10.1 = GMENU
>   10.1 {
> 
>     noBlur = 1
>     NO = 1
>     NO {
> 
>       transparentBackground = 1
>       backColor = #cccccc
>       XY = [10.w]+11,38
>       10 = TEXT
>       10.text.field = nav_title // title
>       10.fontColor = #000000
>       10.offset = 5,24
>       10.fontFile = fileadmin/templates/main/fonts/FRUTLTP.TTF
>       10.fontSize = 10
>       allWrap = <div>|</div>
> 
>     }
>   }
> }
> 
> It gives me the <div> wrap of the whole item but i need the empty span 
> tag and the span-wrap of the gifbuilder-text. I hope that someone 
> brighter then me will chime in :-)
> 
> Thanks in advance
> /Klaus


More information about the TYPO3-english mailing list