Zum Inhalt springen

letztes Element im Menü

Erstellt am 9. November 2009 · 2 Antworten · letzte Antwort am 18. November 2009

Tags: Frage

king_pagel ·

Hallo,
ich habe ein GMENU, welches wie folgt aufgebaut ist:

temp.navigation = HMENU
temp.navigation {
  special = list
  special.value = 2,3,4,5,6
  1 = GMENU
  1 {
 		displayActiveOnLoad = 1
		displayActiveOnLoad.onlyOnLoad = 1
		freezeMouseover = 1
		dontHideOnMouseUp = 0
		hideMenuWhenNotOver = 10
  	hideMenuTimer = 450
  	relativeToTriggerItem = 1
  	directionUp = 0 
  	xPosOffset = -180
  	yPosOffset = 0
  	lockPosition = x 		
  	expAll = 1
  	
    wrap = <ul> | </ul>
    NO {
    	XY = [10.w]+50,36
			5 = IMAGE
			5 {
				file = fileadmin/images/navigation.gif
				height = 230
			}
	    10 = TEXT
	    10 {
	    	text.field = title
	    	offset = 25, 24
				fontFile = fileadmin/fonts/eurostile.TTF
				fontSize = 13
				fontColor = #008bc4
				niceText = 1
	    }
	    allWrap = <li> | </li>
	    
	    15 = IMAGE
      15{
      	file = fileadmin/images/navigation-border.gif
				align = r         
			}
    }
		RO < .NO
  	RO = 1
  	RO {
  		10.fontColor = #009cdc
			wrapItemAndSub = <li class="active"> | </li>
  	}
    
    ACT < .RO
    CUR < .RO
  }
}

Ich möchte nun das Image 15 im letzten Button nicht mehr dargestellt wird. Hat jemand von euch eine Idee, wie ich das hinbekomme?

fahn ·

Hi,

ich hatte genau das gleiche Problem und wollte schon im Forum ein Thread aufmachen, doch leider hat mich google überrascht und ich hab folgendes gefunden.

7.file = fileadmin/template/design/images/sidebar_seperator.jpg |*| fileadmin/template/design/images/sidebar_seperator.jpg |*| fileadmin/template/design/images/spacer.jpg

Nimmst einfach 2x 1.Bild und dann nen spacer ...

Gibt bestimmt bessere Wege, aber es funktioniert!

> http://lists.typo3.org/pipermail/typo3-german/2006-June/018104.html
Daher habe ich es ..

Gruß,
fahn

PS: Das nennt sich optionSplit und mehr findest du hier: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/OptionSplit.html