Login / Status
developer.Resource
Home . Documentation . Document Library . Core Documentation
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

7.6. Images on GMENUs

You can use background images for your menuitems

Example:

page.10 = HMENU
page.10.1 = GMENU
page.10.1.NO {

  wrap = | <BR>

  XY = [4.w], [4.h]

  backColor = olive
  

  4 = IMAGE

  4.file = fileadmin/tsbyex/menuback.gif

  10 = TEXT
  10.text.field = title
  10.offset = 0,14
  10.align = center
  10.niceText = 1
}

The image "menuback.gif" looks like this:

Result:

Advanced Example (GMENU)

If you would like to study this advanced example, where the GMENU creates a dynamically embossed background for menuitems, please go to the Challenge section in the back.

Challenge (GMENU/2)

Could you create this menu, based on what you know about the GIFBUILDER object?

Three images,

 left.gif

 middle.gif and

 right.gif

from media/buttons/ are used



TYPO3 Core API

TSRef

TYPO3 Coding Guidelines