Problem bei Positionierung von GMENU_LAYER | | Hallo Leute,
ich habe ein kleines Problem mit der Positionierung meines GMENU_LAYER.
Es handelt sich um ein vertikales Menu, die Layer sollen nach rechts passend zum ausgewählten Punkt ausklappen. Die Positionierung habe ich bisher mit absoluten Angaben hinbekommen. Nun ist es aber so, dass auf einigen Unterseiten eine relative Positionierung aufgrund unterschiedlicher Platzverhältnisse über dem Menü notwendig wird. Könntet ihr mir einen Tipp geben wie ich das TS umschreiben muss, so dass es relativ positioniert wird?
Vielen Dank und Grüße!
THETREE Typoscript-Code: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62:
| temp.NAVIGATION = HMENU temp.NAVIGATION.1 = GMENU_LAYERS temp.NAVIGATION.1 { layerStyle = position: absolute; left: 50%; margin-left: -315px; width: 172px; visibility: hidden xPosOffset = 0 yPosOffset = -288 lockPosition = y expAll = 1 NO { allWrap = <tr><td style="width: 172px; height: 28px">|</td></tr> ATagParams = class="navigation" XY = 172, 28 5 = IMAGE 5.file { import = uploads/media/ import.listNum = 0 import.override.field = media } 10 = TEXT 10.text.field = title 10.offset = 10,17 10.fontSize = 12 10.fontFace = fileadmin/templates/fonts/ucr.ttf 10.fontColor = #FFFFFF 10.niceText = 1 } RO < .NO RO = 1 RO { 10.fontColor = #000000 } } temp.NAVIGATION.2 = GMENU_LAYERS temp.NAVIGATION.2 { layerStyle = position: absolute; left: 50%; margin-left: -143px; width: 172px; visibility: hidden xPosOffset = 0 yPosOffset = -288 lockPosition = y expAll = 1 NO { XY = 172, 20 5 = IMAGE 5.file { import = uploads/media/ import.listNum = 0 import.override.field = media } 10 = TEXT 10.text.field = title 10.offset = 5,15 10.fontSize = 11 10.fontFace = fileadmin/templates/fonts/ucr.ttf 10.fontColor = #FFFFFF 10.niceText = 1 } RO < .NO RO = 1 RO { 10.fontColor = #000000 } } |
__________________ The wind, the birds, the love, the air, the breathe, the duke, the spring and me. |