CMS Builder 2.13 Preview Issue

5 posts by 2 authors in: Forums > CMS Builder
Last Post: December 16, 2011   (RSS)

I'm having an issue on a site that I'm developing. When I attempt to preview an edit to a current page I'm brought to a page displaying ?preview-9999999999 After the file name.

This page is displaying the correct current page minus the edit that I'm attempting to make.

Any thoughts on what may be causing this?

Thank you.

Re: [bragg31] CMS Builder 2.13 Preview Issue

By Jason - December 15, 2011

Hi,

Could you please attach a copy of the page you're using for previewing the record?

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: [Jason] CMS Builder 2.13 Preview Issue

Hi Jason,

Thank you for responding. I've attached one of the pages for your review.
Attachments:

personal-insurance.php 3K

Re: [bragg31] CMS Builder 2.13 Preview Issue

By Jason - December 16, 2011

Hi,

Yes, that change in the code generator was made. From what you posted, I'm assuming that the personal_insurance section is a single record section. Since in a single record section, there will only ever be 1 record, there is never any need for a where clause, which is why it was phased out of the code generator.

That being said, under normal circumstances, both method would work correctly. The problem you encountered is that if there is a where clause in your getRecords call, the preview functions are not triggered correctly. It's usually best to have a separate PHP page that is only used for previewing.

Hope this helps clarify. Glad to hear everything is working correctly now.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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