Zum Inhalt springen

RandomImage zeigt 2 Bilder an

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

Tags: Bilder, Frage

gesche ·

Hallo zusammen

Ich habe eigendlich genau das gegenteilige Problem von dem, was alle andern an der Ext RandomImage bemängeln.

Bei mir zeigt die Extension zwei Bilder anstatt einem einzigen an. Ich habe dies so in meinem Template hinzugefügt.

includeLibs.tx_ccrandomimage = EXT:cc_random_image/pi1/class.tx_ccrandomimage_pi1.php
# USER_INT means 'no caching'
plugin.tx_ccrandomimage_pi1 = USER_INT
plugin.tx_ccrandomimage_pi1 {
  userFunc = tx_ccrandomimage_pi1->main
  path = fileadmin/random_images/
  fileExt = jpg,jpeg,gif,png
  renderObj = COA
  renderObj {
    10 = IMAGE
    10.alttext = Bild
    10.allWrap = |<br />
    10.wrap =|
    10.file = ###FILE_1###
  }
}

Und setze es so in meine Seite

subparts.RANDOM_IMAGE < plugin.tx_ccrandomimage_pi1

Danke für jeden Hinweis!

gesche ·

hmmm... autsch #angry#

Lösung:

plugin.tx_ccrandomimage_pi1 = USER_INT
plugin.tx_ccrandomimage_pi1 {
  userFunc = tx_ccrandomimage_pi1->main
  path = fileadmin/random_images/
  fileExt = jpg,jpeg,gif,png
  renderObj = COA
  renderObj {
    10 = IMAGE
    10.alttext = Bild
    10.allWrap = |<br  />
    10.wrap =|
    10.file = ###FILE_1###
    20 >
    #20.file = ###FILE_1###
  }
}