/ Published in: TYPO3
URL: http://www.gtmenu.de
Using this TypoScript, you can build an accessible GTMenu which may fully be styled using CSS. We propose using this instead of ANY GMENU which creates ugly code.
It renders a simple TMENU, and wraps an IMGRESOURCE into the ATagParams by making this a cObject. Check out the podcast on typo3.org: http://castor.t3o.punkt.de/files/TnTttmenu.m4v
Please note: in order to use {TSFE:lastImgResourceInfo|0} (which reads the width of the last image generated by the gifbuilder) you need TYPO3 4.1
Expand |
Embed | Plain Text
### TypoScript ### lib.gtmenu { 1 { wrap = <ul id="navi">|</ul> 10 { field = title typolink { parameter.field = uid ATagParams.cObject { 10.file { XY = [10.w]+[20.w]+10,70 transparentColor = #ffffff 10 { text.field = subtitle//title fontSize = 14 fontFile=fileadmin/fonts/DINPro-Bold.otf offset = 5,20 fontColor = #787879 } 20.dimensions = 0,30,[10.w]+[20.w]+10,30 20.color = #e53827 30 < .10 30 { offset = 5,50 fontColor = #ffffff } } } } } } } } ### CSS ### ul#navi {list-style: none;} ul#navi li {float: left;} ul#navi li a {background-repeat:no-repeat; display:block; overflow:hidden;text-indent: 999em; white-space:nowrap; height:30px;} ul#navi li a:hover, ul#navi li.current a,ul#navi li.over a {background-position:0px -30px;}
Comments
Subscribe to comments
You need to login to post a comment.

Is there a possibility to include the distributeX-functionality, which is normally necessary for most of the designs?? Otherwise it would only make sense for vertical aligned menus. Regards, Cornelius
@corneliusilli It always makes sense to use this menu instead of a GMENU. See it in action in combination with suckerfish here: http://www.corteco.com/ distributex is a GMENU property and will not work on TMENUs - however - since these are all regular
is there an alternative to distibuteX-functionality for this menu? i mean an automatic solution that works as well as the distirbuteX-functionality...
...CSS is not an option i think because it requires modification of the stylesheet every time the list-items change...