Webteam Home

Webteam Charge

Team Membership

Website Mission Statement

Redesign Project
(goals | timeline)

Meeting Minutes

Comments/Suggestions


Pagemaster's corner TOC:

Style Sheet

Server Side Includes

Templates

Standards

Prodecures

Quality Assurance

Pagemaster's Corner: Template

All pages on the Infodome website use the following template. While there is an explanation of this templating system below, all pagemasters will have to do is insert their content. Any modifications to the template should be made in consultation with the webteam.

<!--#config timefmt="%D %H:%M %Z" -->
<!--#set var="page_section" value="default" -->
<!--#set var="page_type" value="default" -->
<!--#set var="page_title" value="[Put Page Title Here]" -->
<!--#set var="use_title_as_content_header" value="yes" -->
<!--#set var="author_name" value="Laura Hudson" -->
<!--#set var="author_email" value="lhudson@mail.sdsu.edu" -->
<!--#set var="keywords" value="[Enter Keywords For META Tag, OR Leave Blank]" -->
<!--#set var="description" value="[Enter Description For META Tag, OR Leave Blank]" -->
<!--#include virtual="/pagedefs/type/${page_type}/top.shtml" -->
<!--include virtual="[to use, change 'include' to '#include' and change this to 'see also' URL]" -->
[Put all the content here]
<!--#include virtual="/pagedefs/type/${page_type}/bottom.shtml" -->

Here is the same template, with annotations:

<!--#config timefmt="%D %H:%M %Z" -->
This line of the template captures the time that you change the file so that pages have a time stamp.

<!--#set var="page_section" value="default" -->
This line determines the page template that is called into use for your page. We have only three page sections defined right now--default, friends, and special collections (click on each to see examples of pages using these different sections). As you can see, in these instances the navigation bar is different for each section.

<!--#set var="page_type" value="default" -->
This line determines the layout of your page. Currently there are two page types, one for pages with the navigation bar (default) and one for pages with a simplified top navigation bar (content).

<!--#set var="page_title" value="[Put Page Title Here]" -->
This is where you insert your page title.

<!--#set var="use_title_as_content_header" value="yes" -->
This line determines whether your page title will also be used as the title line of the page. Except in rare circumstances, the answer will remain at the default yes.

<!--#set var="author_name" value="Laura Hudson" -->
This is what will show up as the page author in the footer of your page

<!--#set var="author_email" value="lhudson@mail.sdsu.edu" -->
This will insert the date into the footer

<!--#set var="keywords" value="[Enter Keywords For META Tag, OR Leave Blank]" -->
<!--#set var="description" value="[Enter Description For META Tag, OR Leave Blank]" -->
These insert tags that make it easier for search engines to index your pages. Both are optional.

<!--#include virtual="/pagedefs/type/${page_type}/top.shtml" -->
This just inserts the layout.

<!--include virtual="[to use, change 'include' to '#include' and change this to 'see also' URL]" -->
This can be used to include see also references, as we do on the database pages. Any time that you have the same information on a group of pages, it makes sense to use this. You simply ask Laura Hudson create an html file, store it in the /pagedefs/seealso directory, and then point to it above.

[Put all the content here]
Just what it sounds like. You put in all your html content. Only include content between (and not including) the <body> tags.

<!--#include virtual="/pagedefs/type/${page_type}/bottom.shtml" -->
This just includes the bottom half of the layout.
Downloads
To save: right click on the link and choose Save As...
Next you'll want to read about standards.

Back to the top | Back to the Pagemaster's Corner
Revised 05/15/02 by Laura Hudson
Contact: Laura Hudson: lhudson@mail.sdsu.edu