Thread: Templates
View Single Post
Old 07-21-2002, 08:43 PM   PM User | #5
Tonz
Regular Coder

 
Join Date: Jun 2002
Location: Auckland New Zealand
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Tonz is on a distinguished road
We template all of the sites we build.

We build just one page and test it across the four main browsers, Internet Exploder (aka IE), Nuts-scrape (aka NS) Mozilla (aka THE best) and Opera (aka "Who?").

During the development of the main (first) page we code in a lot of comment tags so that it is easier to add content to for the other pages.

For example, where the image is for the main page we would do this (Where the image is a gif saying "Home")

<!-- ********************** page header ************* -->
<img src="../graphics/homeh.gif" width... etc etc>


We use a lot of tables, so we note various locations in the table for ease of adding content ie..

<!-- **************TOP***** left table cell data ****** -->
<td>stuff</td>
<!-- *************TOP***** right table ***** -->

We normaly create the home page as the template, and once we have tested it and fine tuned the code, we replace the "home page" content with content that reminds us of how the layout should look, and rename the template page as "aaa_coding_forums_template.html".



ie..

<!-- **************TOP***** left table cell data ****** -->
<td>PUT INRO HERE</td>
<!-- *************TOP***** right table ***** -->
<td>PUT AUTHOR HERE</td>


Hope this helps


Tonz



__________________
Beware, the Cybertooth tiger cometh
Tonz is offline   Reply With Quote