preview button

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

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

By pothompson - March 28, 2012 - edited: March 28, 2012

Hi Damon,

But surely this code is required to load the correct record based on the record number in the URL?

I'm having the same issue and whilst removing this code doesn't stops the error message, it also fails to load the record based on the number in the URL, instead loading the first record as per the sort order for the section.

Can you let me know if there's more to it that I'm missing please?

Thanks, Paul.

UPDATE: I've found that this is in someway connected to the website membership plugin as if that plugin is disabled then the preview function works as expected. Any help would be appreciated.

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/

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/