Content Integration

Now that you have installed siteAdmin and setup the database, you can upload everything to your server.

Integrating the content to your website template is also easy.

First, remember to include the helper functions:


Then get the content from the database files using PHP:

$c = getContent('Article');

Now separate the fields into variables:

$title = $c[0];
$content = $c[1];
and so on...

And inside the html template, insert the following tags where you want the content to be editable using the variable names. Example:

<div id="content">
<h1><?php put('title'); ?></h1>
<?php put('content'); ?>

Login to comment.