Remove Preview Button from entire CMS

9 posts by 3 authors in: Forums > CMS Builder
Last Post: April 12, 2013   (RSS)

By Codee - April 11, 2013

In each section's editor, under the "Viewer URLs" tab you should see:

List Page URL:

Details Page URL:


Preview Page URL:

Typically, if you put the relative URL that is for the list page in to the preview page URL, then when you click the "Preview" button from the section database listings page, it'll open up the list page URL in your browser window.

I'm not sure where in CMSB you would completely eliminate that button, however, I suspect it's most likely in an area that,if you make a change, would get overwritten when you upgrade.

By Mikey - April 12, 2013

Yea, the problem with that is that I'm not using list pages for many of my sites and going directly to the details page for Category pages. I found where I can edit it out in the code, but I think I'm going to try to build a plugin to to do it for me automatically.

Hi Zick

Which version of CMS Builder are you using? There was a bug in version 2.51 that stopped the preview system from working.

Thanks

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By Mikey - April 12, 2013

V2.51 for the site that I need to apply this to immediately. But I also need to remove the preview button for some older versions as well... going back to version 2.15.

Hi Zick,

Do you have a copy of version 2.52 or later of CMS Builder to upgrade the 2.51 site to? If not, you can fill out a second level support request here:

https://www.interactivetools.com/support/email_support_form.php

And I can upgrade the site to the latest version of CMS Builder for you. 

If you want to disable the preview button for a section on some of your other sites, you can do it by going to the Section Editors menu, clicking the modify link on the section you want to stop previews on. On the section modification page navigate to the advanced tab and check the  Don't allow previewing records check box.

Thanks

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By Mikey - April 12, 2013

No, I do not have the latest version 2.52. the website in regards to this topic just launched this morning at 9:00am EST, so it's still propagating. Once it has finished it's propagation period, I'll follow up with the second level support. Sound good?

Sounds great! 

Cheers

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By Codee - April 12, 2013

If you have the ip address of the new site, you can provide that instead of the domain name for ftp'ng. That way the site could still get updated sooner...even before the dns propagation completes. Just a thought.