Image vars

6 posts by 2 authors in: Forums > CMS Builder
Last Post: August 22, 2008   (RSS)

Re: [oams] Image vars

By Dave - August 22, 2008

Hi Jeremy,

Try <?php echo $record['num'] ?> (without the s).

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Image vars

By jjem - August 22, 2008

Hi Dave, it does not work... already tried...
J

Re: [oams] Image vars

By Dave - August 22, 2008

That's very strange. What error is returned?

Try adding this debugging code below the foreach line to see what fields are available in $record:

<?php foreach ($galleryRecords as $record): ?>
<xmp><?php print_r($record); ?></xmp>

And remove it when you're done. Let me know what that shows and what the error was.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Image vars

By jjem - August 22, 2008

Sorry about that, there is no error message and it works.

The fact is my gallery does not work because I have the <?php break; ?> to show only one image per record in the List.

The <a rel="rokbox[650 424] (<?php echo $record['num']?>)" was to group the rest of the pictures of each record (album) into a slideshow (mootools).

[:/]

Re: [oams] Image vars

By Dave - August 22, 2008

Oh ok, so is it working the way you need now? Or do you need any more help with it?
Dave Edis - Senior Developer
interactivetools.com