[TYPO3-english] Part of image as background in GMENU
    Søren Malling 
    soren.malling at gmail.com
       
    Tue Aug 11 08:14:51 CEST 2009
    
    
  
> I got it working with applyTotalW and distributeX - i will post my
> full code tomorrow for anybody else interested :)
lib.menu.main = HMENU
lib.menu.main {
    special = directory
    special.value = {$lib.menu.main.pid}
}
lib.menu.main.1 = GMENU
lib.menu.main.1 {
        applyTotalW = 5
	distributeX = 798
        NO {
                wrap = |
                XY = ,20
                backColor = #ae652e
                5 = IMAGE
                5.file = fileadmin/templates/path/to/bodytextbg.jpg
                5.offset = 0,-10
                10 = TEXT
                10 {
                        text.field = title
                        text.case = upper
                        fontFile = fileadmin/fonts/fontname.ttf
                        fontSize = 16
                        fontColor = #000000
                        antiAlias = 1
                        offset = 0,15
                        align = center
                }
        }
        RO < .NO
        RO = 1
        RO.backColor = #64CB0C
        RO.5 >
}
    
    
More information about the TYPO3-english
mailing list