[TYPO3-content-rendering] Graphical TMENU - tying up loose ends

Stefan Beylen intsys at swissinfo.org
Sun Jan 8 22:41:15 CET 2006


Hello Torsten,

> Stefan first had the very good idea to use a GMENU in page.headerData 
> for doing the above. But then we all went "to pastures greener" and the 
> thing was never finished up... So I decided to give it another try - and 
> it finally works :) Please see http://www.stdwarp.org/?83

cool ;)
why didnt you contact me? I have a version here that works too...could 
have saved you some time...

> As you see, no more JS, no more <img> tags, just clean css styles that 
> correspond to the TMENU equivalents.

hm, actually the JS is pretty useful as it preloads images, some 
browsers do not preload background-images (doesnt look very nice on hover)

> It's done by a GMENU in page.headerData with a small IProcFunc that 
> substitutes the normal GMENU <img> tags with the file references. By 
> using .subst_element_Uid it's possible to attach each style rule to a 
> specific TMENU item. In case a .RO state is enabled, the IProcFunc 
> appends another style rule with :hover the particular items.

I think mine is a bit easier to use as it works like a regular gmenu, 
the only difference is that you have to include an iprocfunc

here are 2 examples where I use the menu:
http://www.weingut-donabaum.at/
http://www.mnozilbrass.at/

here a modified version (external styles, different approach):
http://www.sil.at/


have a nice day!



More information about the TYPO3-project-content-rendering mailing list