|
ViewersYou 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:
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 FieldsThe 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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|