[TYPO3] Extracting all images from media field
Tyler Kraft
headhunterxiii at yahoo.ca
Wed May 9 19:22:03 CEST 2007
Here Francois,
This is from Peters reply to me on 17:43 21/12/2006
-- cut --
lib.images = COA
lib.images {
10 = TEXT
10.data = page:media
10.split {
token = ,
cObjNum = 1
1 {
10 = IMAGE
10.file.import.current = 1
10.file.import = uploads/media/
}
}
}
-- cut --
The above code will show all the images attached to the media field of the
page..
--
Tyler Kraft wrote:
> you need to get the whole filed and use split and ',' then render as 1=coa
>
> Do a search in the lists as I asked a similar question a while back and
> Peter Klien (I think it was Peter) gave a very helpful answer.
>
> hth
>
>
>
> Francois Suter wrote:
>> Hi all,
>>
>> On the site I am working on, users can add images and the media field
>> and they all should be displayed somewhere on the page, whatever the
>> number of images.
>>
>> The following TS obviously display only the first image:
>>
>> lib.cw_rightcolumn = COA
>> lib.cw_rightcolumn {
>> 10 = IMAGE
>> 10.file {
>> import = uploads/media/
>> import.data = levelfield : -1, media , slide
>> import.listNum = 0
>> }
>> }
>>
>> If I remove importListNum = 0, it simply display nothing. Is there a
>> way to have a kind of loop on all images?
>>
>> Thanks in advance for any help.
>>
>> François Suter
>> Directeur technique
>> -------------------------------------------------------------------------------------------------------------------------------------
>>
>> Cobweb Development Sàrl
>> www.cobweb.ch
>> -------------------------------------------------------------------------------------------------------------------------------------
>>
>>
>>
More information about the TYPO3-english
mailing list