[TYPO3-content-rendering] Graphical TMENU - tying up loose ends
Torsten Schrade
schrade at lineara.de
Sun Jan 8 13:49:22 CET 2006
Hi Folks,
last night I stumbled over this thread from last July:
http://lists.netfielders.de/pipermail/typo3-project-content-rendering/2005-July/000133.html
We had a discussion there that it would be quite useful if we could use
the graphical possibilities of GMENUs on simple TMENUs just by inserting
the GMENU images as CSS background styles for the TMENU items.
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
As you see, no more JS, no more <img> tags, just clean css styles that
correspond to the TMENU equivalents.
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.
Now the question is if this makes sense... ;)
I thought best thing would not be to post it here (200+ lines of TS) but
pack the stuff together in small member extension (cag_gtmenu). I would
appreciate you testing it and tell me if all this is somehow useful and
if so where we should put it - post it in the wiki? or maybe publish the
extension? or whatever... Well, just raise hands if you like to test it
so that I can add you as extension members.
Cheers and have a nice Sunday,
Torsten
More information about the TYPO3-project-content-rendering
mailing list