[TYPO3] menu with 2 pictures as states

Livius Agrippa livius_agrippa at yahoo.com
Wed Jan 31 22:18:15 CET 2007


Sander van Gelderen wrote:
> 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

Hi Sander,

Thank you very much for your solution. I tried to implement this 
solution on my site but I use the version 4.0.4 or maybe the Imagemagick 
is not properly set because this error was fired by Typo3:
Fatal error: Call to undefined function imagecreate() in 
/path_to_typo3/t3lib/class.t3lib_stdgraphic.php on line 2875

I will try more because This is an elegant solution.

Best regards,
Livius


More information about the TYPO3-english mailing list