Zum Inhalt springen

randomImage

Erstellt am 6. April 2006 · 7 Antworten · letzte Antwort am 8. November 2006

Tags: Frage

mariohaehni ·

hallo! Ich habe mir die Extension ccrandomimage geealden. habe diese auch entsprechen Konfiguriert und es funktioniert. Nun ist es ja so, dass immer das Bild mit HTML Tags ausgegeben wird. Also:

<img src="fileadmin/img/bild03.jpg" height="20" weight="200" alt="" />

Ich möchte aber nur den Pfad ausgeben. Also fileadmin/img/bild03.jpg

Wie kann ich das machen? Mein TS sieht so aus:

plugin.tx_ccrandomimage_pi1 {
  path = fileadmin/img/_musiker/
  fileExt = gif,png,jpg,jpeg
  renderObj = COA
  renderObj {
    10 = IMAGE
    10.file = ###FILE_1###
    10.wrap = |
  }
}
temp.randomImage = USER
temp.randomImage < plugin.tx_ccrandomimage_pi1

Besten dank für eure Hilfe!

just2b ·
mariohaehni schrieb

Was müsste ich wo ändern? Kannst du mir das sagen?

pi1/class.tx_ccrandomimage_pi1.php, wo/was genau bitte selbst herausfinden

georg