Preview feature?

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

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

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

Thanks, Greg.

Thanks, Dave.