images showing in list view but not in page view

4 posts by 2 authors in: Forums > CMS Builder
Last Post: February 12, 2008   (RSS)

Re: [ChrisTitchenal] images showing in list view but not in page view

By Dave - February 12, 2008 - edited: February 12, 2008

It's reading the number off the end of the url and trying to load that record.

If it's a page viewer try hardcoding the record number you want it to load, like this:

$options['recordNum'] = '1';

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

Re: [Dave] images showing in list view but not in page view

Thanks Dave,

I tried that and now get this error " getuploads: no 'recordNum' value specified!" on the part of the page that would normally come up with the page information.

thanks for your fast reply and hope this gets figured out by you or me

Chris

Re: [ChrisTitchenal] images showing in list view but not in page view

By Dave - February 12, 2008

Sorry, you'll need to hardcode the record number for the getUploads call as well. Change this:

<?php foreach (getUploads($options['tableName'], 'uploads', $record['num']) as $upload): ?>

To this:

<?php foreach (getUploads($options['tableName'], 'uploads', 1) as $upload): ?>

The basic idea is that we're tell it exactly what record number to load rather than getting that information from the url.

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