[TYPO3] How to list all the images in table(comma separatedfilename) in typoscript template?
Dennis Cheung
hkdennis2k at gmail.com
Mon Jan 23 02:48:22 CET 2006
Thanks, that is what I am looking for.
On 1/21/06, Peter Klein <peter at umloud.dk> wrote:
> 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
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list