Passing the correct upload identifier to a video player viewer from a multi-image upload field

15 posts by 2 authors in: Forums > CMS Builder
Last Post: January 8, 2013   (RSS)

Hi Greg,

I agree that the issue is with the list page.

The "d" version that is attached to the post that precedes your latest answer is the latest version.

I don't have any idea how recode the page to fix the issue.

I hope you can help.

Jerry

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Hi Greg,

Thanks for sticking with this one. Looks like it turned out to be a bit tricky..

It's working now, but I'm not sure why.

Any thoughts?

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Hi Jerry,

This is how it works:

In the foreach loop for each image/video, I've set the variable $uploadNum on line 207 to the num field for that image record. 

Before on line 223 you were using the num value for $upload, which is being set as the $record['video_placeholder_image'] num value on line 215. I changed it to use the num value for the images field using the $uploadNum variable instead.

I hope that makes sense, it's not easy to explain!

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

Thanks Greg,

Missed that one, but I understand now.

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php