[TYPO3-english] combining gmenu and tmenu (or two ttf in gmenu)

Darko Jr. Gonzalez jkokino at gmail.com
Tue Aug 18 19:12:29 CEST 2009


hey folks!
How do I combine these two menus in one? The point is that ideal is to have
a single menu object, easier for maintenance and easier to maintain the
layout. The first set of the menu items I have are going to use font1.ttf
and for the rest of the menu items I have font2.ttf. How do I do that?
########################################################
## menu style for menu items for page id = 10,3,4,2,11,6
lib.ttfMenu = HMENU
lib.ttfMenu.excludeUidList = 9,12,8,7,5
lib.ttfMenu.1 = GMENU
lib.ttfMenu.1 {
NO {
wrap = <li>|</li>
backColor = #000
noBlur = 1
XY = [10.w]+10,20
10 = TEXT
10{
text.field = title
fontFile = fileadmin/templates/fonts/font1.ttf
fontSize = 10
fontColor = #ccc
offset = 6,20
}
}
}
########################################################
## menu style for menu items for page id = 9,12,8,7,5
lib.ttfMenuSec = HMENU
lib.ttfMenuSec.excludeUidList = 10,3,4,2,11,6
lib.ttfMenuSec.1 = GMENU
lib.ttfMenuSec.1 {
NO {
wrap = <li>|</li>
backColor = #000
noBlur = 1
XY = [10.w]+10,20
10 = TEXT
10{
text.field = title
fontFile = fileadmin/templates/fonts/font2.ttf
fontSize = 10
fontColor = #ccc
offset = 6,20
}
}
}


Another option is that I use TMENU instead of GMENU for the first set of
menu items, and apply font2.ttf to the rest of the menu items. But I am
encountering the same tricky situation which is conditionally (based on page
id) applying a style to each menu item. I know there "if" but I am not sure
how to use? Something along the lines of:
append = TEXT
append.value = onClick="javascript:functionl(); ; return false;"
append.if{
value.field = uid
equals = 7
}

Thanks for looking


Cheers,
DG


More information about the TYPO3-english mailing list