preview button

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

By Vaisoco - March 8, 2011

we have a customer who site we produced using CMS builder some time ago. Last week they requested a "staging" version of their website and CMS so that they could test their content additions first and then duplicate them on their live environment. If all was okay.
This is completely mad and I have now seen that you have a "preview" option in your latest release.
Could I please confirm how this actually works. Are you saying that irrespective of how much CMS builder currently does within our clients site, the preview button will display the complete page exactly as it would if the record were saved?

Also we have done a lot of our own custom coding within CMS builder.
We want to ensure that we don't have any issues with the current version. Is there a safe way of including the new "preview" option without disrupting anything else?

Your help would be so very much appreciated.

Geoff

Re: [Vaisoco] preview button

By Vaisoco - March 9, 2011

I am not sure quite what the reply to my post is here.
Could someone please advise how the "preview" functionality works.
We are desperate to know.

Thanks.

Geoff

Re: [Vaisoco] preview button

By robin - March 9, 2011

Hi,

The preview option lets you view what a record will look like before you save it. It will show the preview exactly how it would look on the normal details page. It will work if you have the "Detail Page Url" set in the section editor for that section.

To set the "Detail Page Url":
-Click Admin on the side bar, and then Section Editor.
-Click Modify on the section you're working with
-Click "Viewer Urls" at the top of the page.
-Type your details page in the "Detail Page Url" text box.

You can check out the preview functionality at our on line demo here:
http://demo2.interactivetools.com/cmsbuilder2/
-Click Administrator to login as administrator
-Click "Sections" on the side bar, and then "News"
-Click Modify on one of the records.
-Now you can modify the title or content and see the changes by clicking "preview" before saving the record.

If you have custom coding in your CMS Builder you'll have to re-apply that after upgrading, your custom changes will be overwritten in the upgrade.

Thanks
Robin
Programmer
interactivetools.com

Re: [Vaisoco] preview button

By Dave - March 9, 2011

I'll add the caveat that when you delete or upload a file or image that change takes place right away both for the live and preview versions.

Also, a good free tool for comparing code differences between versions is "winmerge".

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] preview button

I'm finding that the Preview button is looking for the page in the cmsAdmin directory. However, the page for the preview that I would like to specify is in the main /www/ directory. I have attempted to use a full URL path, but it keeps defaulting to the directory. I also do not see a place to change this in the General Settings [Admin]. How can I fix this?

Re: [Jason] preview button

Where do I put this preview path? If my low-tech client clicks on the button, they should be able to see the preview without workarounds.

Re: [tsuluwerks] preview button

By Jason - April 19, 2011

Hi,

If you go into your section editor for that section and click on the "Viewer Urls" tab, you'll see a field for "Preview Url". Put your entire path here including the http:// and hit save. Then go into that section and hit preview.

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

The section editor states 'leave blank to use Detail Page Url '.

However, I filled in the viewer URL for Client Spotlight, and it still gives the error. When I look at the URL, it is looking for the file in the cmsAdmin folder. How can we stop the system from looking in the cmsAdmin folder? When I add the full URL (/home/www/newcareinc/) to precede the file name, it adds this path after http://www.newcareinc.com.


When I put in the full http path to the field (http://www.newcareinc.com/clientSpotlight.php), I get an error that says "You must be logged in to use this feature!"

I'm not techie enough to understand what's happening. [:/]

Re: [tsuluwerks] preview button

By Jason - April 20, 2011

Hi,

We're going to be looking into the issue with the preview button looking in the cmsAdmin folder further.

For now, if you want clientSpotlight.php to be the page used for your preview as well as being your detail page, put:
clientSpotlight.php in your Detail Page Url
and
http://www.newcareinc.com/clientSpotlight.php in your Preview Page URL

I went directly to that page and didn't get a "You must be logged in to use this feature!" error. Give this a try and let me know if you run into any issues.

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/