Jump to content

Dealing with Upload Arrays in Pages


jaeitee

Recommended Posts

Posted

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:

56713ccacc2c4_ScreenShot2015-12-16at9.27


Inside the listing format I have custom:

56713d1184d31_ScreenShot2015-12-16at9.29

 

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:

monthly_2015_12/56702793c0cf8_gps13.jpg.e86ece2f282dcc85808dcb39b95d6027.jpg,monthly_2015_12/5670279591481_gps12.jpg.f1d51fa8425e0ae34d951d5f935c8600.jpg,monthly_2015_12/gps1.jpg.010671ecf2a449e52021d61c36c5c8ce.jpg


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?

Archived

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

  • Recently Browsing   0 members

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