---
title: "wag_randomimage / Random Image from Directory"
url: "https://www.typo3.net/d/68380-wag-randomimage-random-image-from-directory"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2007-09-20"
last_reply: "2008-04-25"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# wag_randomimage / Random Image from Directory

Extensions · 3 Antworten · gestartet 2007-09-20

## Eröffnungsbeitrag

**schrumpelgnom** · 2007-09-20 · [Beitrag #1](https://www.typo3.net/d/68380-wag-randomimage-random-image-from-directory/1)

Hallo,

bin gerade dabei eine Image Rotation auf meiner TypoSeite einzubinden und zwar die wag_randomimage. Nun ist es aber leider so, dass ich kein Bild angezeigt bekomme. Das Plugin wird in einen Marker eingefügt, das funktioniert auch soweit, im generierten Code wird die Extension eingebunden, jedoch kein Bild...

Ich habe die Pfade zum BildOrdner nun schon ca. 100 mal überprüft, die sind richtig...

hat jemand ahnung, wieso es nicht klappt?

TS:

```typoscript
#--------------------------------------------------------------------------

#Random Image einbinden
#--------------------------------------------------------------------------
subparts.RANDOM_IMAGE < plugin.tx_wagrandomimage_pi1 
plugin.tx_wagrandomimage_pi1 {
noDuplicates = 0
alt =
defaultDir = fileadmin/template/site/images/random/
filetypes = gif,png,jpg,jpeg
numImages = 1
templateFile = fileadmin/template/ext/tx_wagrandomimage_pi1.tmpl
recursive = 0
}
#--------------------------------------------------------------------------
```

Das wird im HTML generiert...

```html
<!--

		BEGIN: Content of extension "wag_randomimage", plugin "tx_wagrandomimage_pi1"

	-->
	<div class="tx-wagrandomimage-pi1">
		
	</div>
	
	<!-- END: Content of extension "wag_randomimage", plugin "tx_wagrandomimage_pi1" -->
```

## Antworten

### [#2](https://www.typo3.net/d/68380-wag-randomimage-random-image-from-directory/2) · SLAng · 2007-09-20

Setz mal den Part

```typoscript
plugin.tx_wagrandomimage_pi1 {
        noDuplicates = 0
        alt =
        defaultDir = fileadmin/template/site/images/random/
        filetypes = gif,png,jpg,jpeg
        numImages = 1
        templateFile = fileadmin/template/ext/tx_wagrandomimage_pi1.tmpl
        recursive = 0
}
```

über

```typoscript
subparts.RANDOM_IMAGE < plugin.tx_wagrandomimage_pi1
```

### [#3](https://www.typo3.net/d/68380-wag-randomimage-random-image-from-directory/3) · schrumpelgnom · 2007-09-20

Habs gerade versucht, hat nicht geklappt. Leider... Trotzdem danke für die schnelle Antwort!

### [#4](https://www.typo3.net/d/68380-wag-randomimage-random-image-from-directory/4) · JocMet67 · 2008-04-25

...das liegt daran, dass mal wieder einer schlampig programmiert hat - man findet die Anfragen quer durchs Netz und keine Antworten - bei mir klappt das nur fuer Seiten im Root-Level, fuer Unterseiten nicht.

Also: Extension rausschmeissen, was anderes suchen...

---

Quelle: „wag_randomimage / Random Image from Directory“, typo3.net, https://www.typo3.net/d/68380-wag-randomimage-random-image-from-directory
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
