preview button
19 posts by 8 authors in: Forums > CMS Builder
Last Post: March 31, 2012 (RSS)
By tsuluwerks - April 21, 2011
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
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/
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
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
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),
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
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
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
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
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/