Jump to content

Dealing with Upload Arrays in Pages


Recommended Posts

Hi Guys, just searching for some help here in dealing with an upload field in Pages and inserting <img src=""> in to the first 2 file objects of the array and ignoring the rest.

I have an "Upload" box in a form that allows Image uploads:


Inside the listing format I have custom:



Now my issue is with the output, I note that it states on the page "If using mulitple uploads, $value is an array of File Objects."

So my output is now all three attachments uploaded:


How can I insert <img src="value"> in to the first 2 uploads and not display the output of any additional uploads on that page?

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...