[TYPO3] How to list all the images in table(comma separatedfilename) in typoscript template?
Peter Klein
peter at umloud.dk
Sat Jan 21 15:34:58 CET 2006
Hi Dennis. This can easily be done by using the "split" property..
Here's an example that displays all images attatched to the pageheader of a
page..
--- cut ---
lib.listAllImg = COA
lib.listAllImg {
10 = TEXT
10.field = media
10.split {
token = ,
cObjNum = 1
1 = COA
1 {
10 = IMAGE
10.file.import = uploads/media/
10.file.import.current = 1
10.wrap = |<br>
}
}
}
--- cut ---
---
Peter Klein / Umloud Untd
"Dennis Cheung" <hkdennis2k at gmail.com> wrote in message
news:mailman.6205.1137819501.6406.typo3-english at lists.netfielders.de...
Hi all,
I have read many of the plugins/examples are using
.import=uploads/pics/
.import.field=image
.import.listNum=0
To get the first filename in database.
I know it read the "field:image", explodes , get the first record, and
append to upload/pics/.
But I wanted to list them ALL.. Is it possible to do that my using
typoscript only?
I have searched and seem CONTENT, RECORDS and HMENU has a foreach/loop
behavior, but they all related to database operation.
Thanks,
Dennis
More information about the TYPO3-english
mailing list