Zum Inhalt springen

Homelink mit realurl

Erstellt am 23. Juli 2007 · 3 Antworten · letzte Antwort am 24. Juli 2007

Tags: RealURL, Links, Frage

harp ·

Hallo,

ich mache gerade eine Seite mit realurl und finde keine Möglichkeit, die Headerbilder so zu verlinken, dass sie trotz Mehrsprachigkeit und Realurl-Extension auf die Homepage verweißt. Im moment habe ich das - denke ich - recht umständlich gelöst:

temp.headerpic = HTML
temp.headerpic.value = <a href="home.html" target="_top"><img src="fileadmin/mb/home/header-Home.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 119]
temp.headerpic.value = <a href="home.html" target="_top"><img src="fileadmin/mb/games/_home/header-Games.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 155]
temp.headerpic.value = <a href="home.html" target="_top"><img src="fileadmin/mb/serien/_home/header-Serien.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 143]
temp.headerpic.value = <a href="home.html" target="_top"><img src="fileadmin/mb/clips/_home/header-Clips.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 142]
temp.headerpic.value = <a href="home.html" target="_top"><img src="fileadmin/mb/wallpapers/_home/header-Wallpapers.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 144]
temp.headerpic.value = <a href="home.html" target="_top"><img src="fileadmin/mb/infomenu/header-Infomenu.jpg" width="794" height="188" alt="" /></a>
[globalVar = GP:L=5]
temp.headerpic.value = <a href="at/home.html" target="_top"><img src="fileadmin/mb/home/header-Home.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 119] AND [globalVar = GP:L=5]
temp.headerpic.value = <a href="at/home.html" target="_top"><img src="fileadmin/mb/games/_home/header-Games.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 155] AND [globalVar = GP:L=5]
temp.headerpic.value = <a href="at/home.html" target="_top"><img src="fileadmin/mb/serien/_home/header-Serien.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 143] AND [globalVar = GP:L=5]
temp.headerpic.value = <a href="at/home.html" target="_top"><img src="fileadmin/mb/clips/_home/header-Clips.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 142] AND [globalVar = GP:L=5]
temp.headerpic.value = <a href="at/home.html" target="_top"><img src="fileadmin/mb/wallpapers/_home/header-Wallpapers.jpg" width="794" height="188" alt="" /></a>
[PIDinRootline = 144] AND [globalVar = GP:L=5]
temp.headerpic.value = <a href="at/home.html" target="_top"><img src="fileadmin/mb/infomenu/header-Infomenu.jpg" width="794" height="188" alt="" /></a>
[end]

das muss doch irgendwie einfacher gehen, oder?

Gruß
Harp

Unbekannter Benutzer ·

Ja das geht definitiv einfacher...
Am schönsten natürlich über das Mediafeld in den Seiteneigenschaften die Bilder einbinden und den Homelink über ein typolink...

Also etwa so:

temp.headerpic = IMAGE
temp.headerpic.file.import {
  cObject = TEXT
  cObject.value = fileadmin/bilder/default_image.jpg
  cObject.override {
     required = 1
	 data = levelmedia: -1, "slide"
     wrap = uploads/media/|
     listNum = 0
   }
} 
temp.headerpic.stdWrap.typolink.parameter = HIER DIE ID DER HOMESEITE
temp.headerpic.stdWrap.typolink.addQueryString = 1
temp.headerpic.stdWrap.typolink.addQueryString.method = GET

Das sollte dann klappen...

Grüße

Christian

harp ·

Super, hat so funktioniert ... 😃

bis auf das "addQueryString", das hab ich rausgenommen. Das hat mir die aktuelle page-id hinten dran gehangen!?

Gruß
Harp