I've been working on this for a couple days now and I feel like I have a pretty good understanding on how the arrays work. What I'm running into is how to get all the information from the array that I need to build the output.
I'm using a file field, Multiple Selection, Enable as Image field and Create Link as file download/Lightbox.
What I'm wanting to do is create a custom output that needs information from both the [files] array and [meta] array. I'm incorporating a jQuery module that needs the HTML formatted differently that what is displayed by the ['value'] output.
If I do the following:
I get a listing of the file urls just like I should. Now, since the [meta] array is not contained in the files array, how can I pair the information in the second [meta] array with the information in the first [files] array?Code:<?php foreach ($entry['data']['files_field']['files'] as $value): ?>[*]<?php echo $value;?> <?php endforeach; ?>
So, in other words, I need the thumbnail image url and size information in the same line output with the file url so I can construct the HTML output. I can do one or the other, but not both at the same time.
A simpler answer might be found in how the output is done by default. If I had that, then I think I could just modify that to suit my needs.. unfortunately, I don't know where that is.
Thank you in advance for your help.
Bookmarks