Preview problem

5 posts by 2 authors in: Forums > CMS Builder
Last Post: May 2, 2012   (RSS)

By joy - April 30, 2012

I think I need to add more code to my pages for the preview to function correctly, but I'll let you folks tell me.

When I make a change and I click the preview button, the page loads correctly, but I do not see the change I made.

The code I have included in my php page is:
<?php echo $contact_jcsRecord['content'] ?>

Am I missing something that needs to be in place for the preview button to show me changes before I save?

Thanks!!

Re: [joy] Preview problem

By Jason - May 1, 2012

Hi,

Can you attach the .php page you are using for previews so we can see the code?

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [joy] Preview problem

By Jason - May 2, 2012

Hi,

It looks like the problem is that you don't have a WHERE clause in your getRecords statement. If you don't need one on your regular page, I would suggest setting up a separate page that is just used for previewing, and set your getRecords () call like this:

// load records
list($jcsprogramsRecords, $jcsprogramsMetaData) = getRecords(array(
'tableName' => 'jcsprograms',
'allowSearch' => '0',
'limit' => '1',
'where' => whereRecordNumberInUrl(0),
));


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Preview problem

By joy - May 2, 2012

Adding 'where' => whereRecordNumberInUrl(0), only works when I use a special preview page. But good enough for me. Thanks for your help!