[TYPO3] content and array

Peter Klein peter at umloud.dk
Thu Jan 11 13:24:24 CET 2007


Hi Andrea, add this to your renderObj:

file.import.listNum = 0

That will pick the 1st image in the array. To get the 2nd image you use..

file.import.listNum = 1

See TSRef for more info:
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/5/2/


-- 
Peter Klein/Umloud Untd

"Andrea Giorgini" <a.giorgini at norvlit.de> skrev i en meddelelse 
news:mailman.1.1168508292.5227.typo3-english at lists.netfielders.de...
> Hi all,
>
> here is my TS:
>
> temp.POM = CONTENT
> temp.POM {
> table = tt_products
> wrap = |
> select {
> pidInList = 24,28
>        selectFields = uid,title,image,note,description
>        where = offer=1
>        }
> renderObj=COA
>  renderObj {
>    5=IMAGE
>    5{
> wrap=<div id="pom_image">|</div>
> file.import=uploads/pics/
> file.import.field=image
> }
> }
>
> and now my problem: if I have more than 1 picture, the image field will
> contain an array. How do I get only the first cell?
>
> Thx a lot
>
> Andrea 




More information about the TYPO3-english mailing list