[TYPO3] menu with 2 pictures as states
Sander van Gelderen
mail at NOSPsandervangelderen.nl
Wed Jan 31 10:55:55 CET 2007
Livius Agrippa schreef:
>
> Hi,
>
> I want to implement an horizontal menu on the top of my site with the
> first level.
> Every button from this menu will have 2 picture: 1 for active and
> rollover state and one for inactive. The pictures contain also the text
> of the button.
> How can I implement these types of buttons in typoscript?
>
> Thank you in advance for you support.
>
> Livius
Hello Livius,
if I understand correctly you want something like this:
http://testsite.musterfirma.net/84.0.html
This example is on the demo sites, you can login with admin/password and
check out how they did it.
You must change your page type to 'Advanced', then put the menu images
in the 'files' part. The first one will be for NO menu, the second in
the list for ACT state
setup:
# The menu:
temp.customImageMenu = HMENU
temp.customImageMenu.1 = GMENU
temp.customImageMenu.1.NO {
altImgResource.import = uploads/media/
altImgResource.import.field = media
altImgResource.import.listNum = 0
# fall back GIFBUILDER item, if no result from altImgResource:
XY = 226,20
backColor = silver
10 = TEXT
10.text.field = nav_title // title
10.offset = 10,13
# wrap
wrap = |<BR>
}
temp.customImageMenu.1.RO < temp.customImageMenu.1.NO
temp.customImageMenu.1.RO = 1
temp.customImageMenu.1.RO.altImgResource.import.listNum = 1
Good luck
Sander
More information about the TYPO3-english
mailing list