preview button

19 posts by 8 authors in: Forums > CMS Builder
Last Post: March 31, 2012   (RSS)

By tsuluwerks - April 21, 2011

Hi, Jason:

The preview button is working! I do notice, however, that multipage sections have a preview button on the landing page. That button does not work. However, once you dig into the subsection editor, the preview buttons all work nicely.

Thank you!
[:)]

Re: [tsuluwerks] preview button

By Jason - April 21, 2011

Hi,

Glad to hear that's working for you now. The "Preview" button when you're looking at your list of records goes to the "List Page Url" page, not the preview page.

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/

By s2smedia - February 27, 2012

I am getting same error..

my preview page is:
http://pressmediakit.com/Connections/index.php

whenever I click the "Preview" button in CMS i get the

"You must be logged in to use this feature!"

http://www.pressmediakit.com/Connections/index.php?preview-9999999999

Re: [s2smedia] preview button

By Jason - February 28, 2012

Hi,

If you could send in a [url http://www.interactivetools.com/support]2nd Level Support Request[/url] we can take a closer look at this for you. Please make sure to let us know what section you are working in when you get this error.

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: [s2smedia] preview button

By Damon - February 28, 2012

The issue is now fixed and I have sent you an email with details.

For anyone else with a similar Preview issue, the problem was in a
where statement in the top code of the template that was looking for a record
number and getting messed up with the preview URL.

Solution was to remove this code:

where' => whereRecordNumberInUrl(1),
Cheers,
Damon Edis - interactivetools.com

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

Re: [pothompson] preview button

By Jason - March 30, 2012

Hi Paul,

the website membership plugin shouldn't affect the preview at all. The issue here is that the preview functions of getRecords() only get triggered if you don't have an explicit WHERE clause defined. If you put in a where clause, it will take precedence over the preview code. The preview code will automatically retrieve the correct information without the where clause.

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/

By pothompson - March 31, 2012

Hi Jason,

If I remove the where clause then the Preview function doesn't work, it returns the first record (as per the sort order) from the table.

With the where cause reinstated, the preview function works but stops working with the error mentioned in this thread when the website membership is activated.

Thanks, Paul.

Re: [pothompson] preview button

By Jason - March 31, 2012

Hi Paul,

If you could send in a [url http://www.interactivetools.com/support]2nd Level Support Request[/url] we can take a closer look at this problem for you.

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/