Uploads issue

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 12, 2017   (RSS)

By ross - April 12, 2017

Hi there.

I see what you mean and have an idea for a solution :).

What I suggest is looking at this:

<?php foreach ($record['upload_brochure'] as $index => $upload): ?>  

and changing it to read:

<?php foreach ($record['upload_brochure'] as $index => $brochureUpload): ?>  

Notice that I changed "$upload" to "$brochureUpload".

Next, inside that "foreach" block you need to change $upload to $brochureUpload like this:

<?php foreach ($record['upload_brochure'] as $index => $brochureUpload): ?>     
 <p><a href="<?php echo htmlencode($brochureUpload['urlPath']) ?>" target="_blank">Download Brochure</a> </a> 
<?php endforeach ?>

Does that make sense?

Give this a shot and let me know how you make out.

Thanks!

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/