Zum Inhalt springen

Lösung: Drop-Down-Menü und RealURL-Nutzung -> IE-PRoblem

Erstellt am 22. Mai 2008 · 1 Antwort · letzte Antwort am 22. Mai 2008

Tags: RealURL, Tipp

ra-kue-lue ·

Hallo Leute,

Vielleicht kann das mal jemand brauchen, wenn er sich wundert, dass das Drop-Down-Menü aus dem Buch "Kochbuch TYPO3 und Typoscript" mit IE nicht funktioniert, wenn man auch RealURL einsetzt.

Bei IE wird bei einem Klick auf einen Eintrag der Pfad irgendwie relativ statt absolut übergeben und man landet auf einer Fehlerseite.

Hier meine Lösung dazu:

temp.nav-ort = COA
temp.nav-ort {
	10 = HMENU
	10.special = directory
	10.special.value = 3
	## Formular aufbauen
	10.wrap = <form name="dropdownmenu" action=""><select name="menu" size="1" onchange="location.href='http://www.deine-domain.de/'+escape(document.dropdownmenu.menu.options[document.dropdownmenu.menu.selectedIndex].value)" class="dropdownmenu"> | </select></form>
	10 {
		## Ebene 1
		1 = TMENU
		1 {
			alternativeSortingField = title
			expAll = 1
			NO {
				before {
					typolink.parameter.data = field:uid // TSFE:id
					typolink.returnLast = url
					wrap = <option value="|">
					}
				allWrap =  | </option>
				subst_elementUid = 1
				doNotLinkIt = 1
				}
			}
		}
	}

Und dann mit

marks.LIST-NAVI-ORT < temp.nav-ort

im Template einbauen.

Vielleicht gibt es das auch noch besser, aber bei funktioniert es so tadellos.

Schönen Tag noch,

Ralf

just2b ·

Hallo,

steht auch ein Thread über dir beschrieben und zwar so, dass es auch automatisch die richtige Domain hinzufügt

georg