[TYPO3-UG Oesterreich] GMENU: minimale Breite einstellen?

Thomas Hirt info at thomas-hirt.at
Mon Jun 25 18:06:04 CEST 2007


Bitte um Hilfe für folgendes Problem:

Ich habe ein funktionierendes GMENU_LAYERS und als 2. Ebene ein GMENU  
(Code siehe weiter unten). Durch den Befehl "useLargestItemX = 1"  
erzwinge ich, dass alle Elemente dieses GMENUs sich nach dem  
breitesten Element richten (Ansonsten sind die einzelnen Elemente  
alle unterschiedlich lang). Wie kann ich aber festlegen, dass jedes  
Element MINDESTENS eine Breite von z.B. 120 haben muss?

Daher: gibt es in dem GMENU ein Element breiter als 120px passiert  
nichts. Sind alle Elemente kleiner als 120px wird trotz allem jedem  
Element die Breite 120px zugewiesen.

Bin für jede Hilfe dankbar!

temp.menu = HMENU
temp.menu {
special = directory
special.value = {$id_start}
entryLevel = 0
1 = GMENU_LAYERS
1 {
wrap=<table cellspacing="0" cellpadding="0"><tr>|</tr></table>
layerStyle =position:absolute;VISIBILITY:hidden;
expAll=1

    ### OFFSET DES UNTERMENÜ
leftOffset = -6
topOffset = 18

    ### MENÜ VERSTECKEN
hideMenuWhenNotOver = 1
hideMenuTimer = 250
relativeToTriggerItem = 1

NO = 1
NO {

wrap=<td>|</td><td><img src="fileadmin/templates/bilder/spacer.gif"  
alt="spacer" width="4" height="22" hspace="0" vspace="0" border="0"></ 
td>
backColor = #CC6633
XY = 123, 22

10 = TEXT
10 {
text.field = title
offset = 8,15
fontColor = #FFFFFF
fontFile = {$font_1}
fontSize = 12
niceText = 1
}
}

CUR = 1
CUR < .NO
CUR {
2 = IMAGE
2.file = {$squareo}
2.offset = 5,6

backColor = #FFFFFF
10 = TEXT
10 {
fontColor = #CC6633
offset = 18,15
}
}

RO = 1
RO < .CUR
RO {
2 >
10.offset = 8,15
}

ACT = 1
ACT < .CUR
}

2 = GMENU
2 {
expAll=1
useLargestItemX = 1
NO = 1
NO {
wrap=|<br>
backColor = #CC6633
XY = [10.w]+15,22

2 = IMAGE
2.file = {$shadow_orange}
2.offset = 0,0

10 = TEXT
10 {
text.field = title
offset = 8,15
fontColor = #FFFFFF
fontFile = {$font_1}
fontSize = 11
niceText = 1
}
}

RO = 1
RO < .NO
RO {
backColor = #FFFFFF

2 = IMAGE
2.file = {$shadow_white}
2.offset = 0,0

10 = TEXT
10 {
fontColor = #CC6633
}
}
}
}

[browser= msie]
temp.menu.1.leftOffset = 0
temp.menu.1.topOffset = 24
[global]




-----------------------------------------------

Mag. Thomas Hirt
Kremsergasse 17/6
A-1130 Wien / Österreich

fon: +43.1.904 39 38
mobile: +43.650.999 8776
mail: info at thomas-hirt.at
web: www.thomas-hirt.at




More information about the TYPO3-at mailing list