[TYPO3] Possible to split a menu in half?
Jody Cleveland
Cleveland at winnefox.org
Thu Feb 2 15:50:21 CET 2006
Hello,
I'm running typo 3.8.1 with TemplaVoila .4 on a redhat 4.0 AS server.
I've got a site here: http://www.fdlpl.org/draft/redesign
That I'm trying to emulate in typo here:
http://www.wals.lib.wi.us/fonddulac
I'm happy with how it turned out, but if you look at the menu of the
original, it's split into two rows with the top row being left
justified, and the bottom menu being right justified. So, I'm wondering
if it's possible to do that in typo? I'm using a stylesheet to align the
menu, but how do I split that menu in half so I can have it as two
separate divs?
Here's my TS code for the gmenu:
# Main Menu
###########################################
lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu.1 = GMENU
lib.mainMenu.1.NO.wrap = |
lib.mainMenu.1.NO.imgParams = class="navbarimg"
lib.mainMenu.1.NO {
XY =84,44
5 = IMAGE
5.file = fileadmin/templates/homepage/graphics/button.gif
10 = TEXT
10.niceText=1
10.text.listNum.splitChar=|
10.text.field = title
10.fontFile = fileadmin/fonts/Arial.ttf
10.offset=-2,25
10.align = center
10.fontSize = 9
10.text.listNum.splitChar=|
10.text.listNum=0
10.fontColor= #333333
10.if.isFalse.field = title
10.if.isFalse.listNum = 1
10.if.isFalse.listNum.splitChar=|
#This is the first line if there is a second. This has a low offset
15 < .10
15.if >
15.if.isTrue.field = title
15.if.isTrue.listNum=1
15.if.isTrue.listNum.splitChar=|
15.offset = -2,18
20 < .10
20.if >
20.text.listNum=1
20.offset=-2,23+10
}
lib.mainMenu.1.RO < lib.mainMenu.1.NO
lib.mainMenu.1.RO = 1
lib.mainMenu.1.RO {
5.file=fileadmin/templates/homepage/graphics/button_ro.gif
10.fontColor = red
15.fontColor = red
20.fontColor = red
}
lib.mainMenu.1.ACT < lib.mainMenu.1.NO
lib.mainMenu.1.ACT = 1
lib.mainMenu.1.ACT.wrap = |
lib.mainMenu.1.ACT.imgParams = class="navbarimg"
lib.mainMenu.1.ACT {
backColor = #fdfdfd
5.file=fileadmin/templates/homepage/graphics/button_act.gif
10.fontColor = white
15.fontColor = white
20.fontColor = white
}
Is there something I can add/change in there to split that menu?
- jody cleveland
More information about the TYPO3-english
mailing list