---
title: "RandomImage zeigt 2 Bilder an"
url: "https://www.typo3.net/d/76377-randomimage-zeigt-2-bilder-an"
source: "typo3.net"
tags: ["Extensions","Bilder","Frage"]
created: "2008-04-22"
last_reply: "2008-04-22"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# RandomImage zeigt 2 Bilder an

Extensions · 1 Antwort · gestartet 2008-04-22

## Eröffnungsbeitrag

**gesche** · 2008-04-22 · [Beitrag #1](https://www.typo3.net/d/76377-randomimage-zeigt-2-bilder-an/1)

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.

```typoscript
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

```typoscript
subparts.RANDOM_IMAGE < plugin.tx_ccrandomimage_pi1
```

Danke für jeden Hinweis!

## Antworten

### [#2](https://www.typo3.net/d/76377-randomimage-zeigt-2-bilder-an/2) · gesche · 2008-04-22

hmmm... autsch  #angry#

Lösung:

```typoscript
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###
  }
}
```

---

Quelle: „RandomImage zeigt 2 Bilder an“, typo3.net, https://www.typo3.net/d/76377-randomimage-zeigt-2-bilder-an
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
