interactivetools.com
Quickstart Guide...
How to Install
How to Upgrade
How to Move Servers
How to Private Label
Restore Hacked Sites
Admin Menu
General Settings
Private Labeling
User Accounts
Section Editor (List)
Add New Editor
Section Editor (Edit)
Field Editor
Text Field
Text Box
Wysiwyg
Date/Time
List
Checkbox
Upload
Separator
Regional Settings
Code Generator
Show Code
Viewers
Viewer Options
Displaying Uploads
Search Engines
Advanced Topics
In-Depth Getting Started Guide
Working With Generated Code Guide
Using SlideShowPro With CMS Builder
Special Fieldnames
Changing and Removing File Extensions
Demo Mode

View Changelog »
Glossary
Need Help? Questions?
Post in forum »

Viewers

You can display content from CMS Builder on your website with "Viewers". Viewers are regular HTML pages with some extra PHP tags that load content from the CMS Builder database. They can easily be adapted to any page design with a bit of HTML knowledge.

Here's how you can quickly create a new viewer:

  1. Go to Admin > Code Generator
  2. Select the section you want to create a viewer for
  3. Select the type of viewer you want to create
  4. Select display options for the viewer
  5. Click "Show Code >>"
  6. Copy and paste the generated code into new PHP files as per the instructions on that page
  7. Update the HTML in the viewers to suit your site and design
There are two types of viewers:
List Viewers
These show multiple records from the section (such as news, jobs, events, etc)
Page Viewers
These show a single record from a section (such as a news article, event details, etc)
Tip: On most web servers, if you name your viewer "index.php" and remove any other index files from your webroot folder (index.php, index.shtml), it will be the default file when people browse to your website.

Displaying Fields

The standard PHP tag that displays a field value looks like this:
<?php echo $record['fieldname'] ?>
Where 'fieldname' is the name of your field and $record is an auto generated variable name (instead of $record you might have $newsRecord or $jobRecord, etc). The viewer code generated by CMS Builder has tags for ALL the fields already added so usually all you need to do is move them around and remove the ones you don't want.

Copyright © 1999-2016 interactivetools.com, inc.