How To Create Page Templates and Content Elements
Steps to create new content, a new page template (index.html) and a content element (content.html). For existing content, see How To Edit.
Note that creating new sections of the website and new pages within sections should only be done with the approval of the webmaster.
Content is normally added to the site only to pages that are already part of the site navigation (appear in the site map). New pages must be integrated into the banner/global navigation and the left/local navigation, a task best left to the site administrators who will insure consistency with the information architecture. This whole process, creating a page and integrating it into the navigation, is described below.
- Navigate to and click to select the Model folder. It contains a model template page series (with the wraparound banner/global and left/local navigation, plus right-hand items and a footer appropriate to this section of the website) and a model content page series.


- Name the new directory "how_money_spent."
- Open (double click) your new directory how_money_spent.
- You now have a template page series (index.html) and a content page series. You must edit the breadcrumbs in the content and the title and css nav selector in the template (index.html).
- Select the content.html file and click Manage Series (or double click). Select the one page in the new page series and click skyWrite. Edit the breadcrumbs to read
<a href="/">Home</a> > <a href="/membership/">Membership</a> > How Money Spent
- Save and click Manage Files. Now double click the index.html page series. You are in its Series Manager. Select the one page in the new series and click skyWrite (or simply double click).
- Edit the title to read
<title>CMS Consultants > Membership > How Money Will Be Spent?</title>
- Edit the style selector to read
#menu a#nav_how_money_spent {

Steps to integrate the new page into the navigation

- Finally, you must add the corresponding drop-down menu element in the global navigation file at /includes/banner.html.
Note that some of these are http links and others are https with the attribute class="menuSecure" which adds the padlock gif to the menu item.
<a id="nav_banner_how_money_spent" class="menuItem" href="http://www.cmsconsultants.org/membership/how_money_spent/">How money will be spent</a>
<a id="nav_banner_survey" class="menuItemSecure" href="https://www.cmsconsultants.org/membership/survey/">Member survey </a>
- So to recap, you duplicate the model folder for a section. It has an index file (template) and a content file. You change the title, id selector, and breadcrumbs path to agree with your new page, then edit the local navigation and global navigation files in the /includes folder.
- You are done and you or your contributing authors can now edit the time series for the content element. Note that a content element may have its own includes to support further templating and reuse multiple smaller content elements, but this is too advanced to describe here.
How pages are assembled from components
CMS Consultants pages generally contain 5 major components. Some pages eliminate the right blocks to have more room for content (they use id="column23"). The home page eliminates the left/local navigation to have 2/3 of the page devoted to feature items (this is id="column12").
- Banner - with logo, tagline, quick links, global navigation menus, and search/login bar
- Left/local navigation
- Content
- Right blocks
- Footer
Here is the wireframe diagram for a general page. For other pages, see Information Architecture
The page template code
(page components shown in blue)
<html>
<head>
<?php $sHeadersSent = 1; ?>
<title>About CMS Consultants</title<
<style type="text/css">
#menu a#nav_mission {
<?php include("/var/www/www.cmsconsultants.org/includes/menu_selected.css"); ?>
}
</style>
<?php include("/var/www/www.cmsconsultants.org/banners/about.html"); ?>
<div id="column1">
<?php include("/var/www/www.cmsconsultants.org/includes/nav_about_us.html"); ?>
</div>
<div id="column2">
<div id="content-type">
<?php include("content.html"); ?>
</div>
</div>
<?php include("/var/www/www.cmsconsultants.org/right_blocks/about.html"); ?>
<?php include("/var/www/www.cmsconsultants.org/footers/standard.html"); ?>
</body>
</html>