Preview feature?

5 posts by 3 authors in: Forums > CMS Builder
Last Post: October 2, 2015   (RSS)

Hi CommonSenseDesign,

This can be set up, but there are a couple of things to consider when using it:

  • It only works for detail pages, not list pages.
  • It will only work for pages where there is one getRecords function, if you have more than one you'll need to have a preview page for each section.

Here are the steps to create a preview page:

  1. Go to the code generator, create a detail page that uses  Multi record sections: Get record # from end of url. eg: viewer.php?record_title-3  for which record.
  2. Put the generated code into a PHP file, in my testing I used a file called test.php.
  3. Edit the section and under the viewer URL's tab, enter the path to your preview page (See attached screenshot).

Now when you edit a record you'll have the option to preview it. 

Thanks,

Greg 

Greg Thomas







PHP Programmer - interactivetools.com
Attachments:

CMS Builder.png 83K

By Dave - October 2, 2015 - edited: October 2, 2015

Hi CommonSenseDesign, 

Does CMSB have a preview feature that enables someone to see what new/edited content looks like before it goes live to the public?

Yes, it does.  By default, you should see a "Preview" button on the edit page that you can click to see a preview of the unsaved content.

Let me know if you have any other questions about how that works.

Dave Edis - Senior Developer
interactivetools.com

Thanks, Greg.

Thanks, Dave.