Google Answers Logo
View Question
 
Q: Web Design - Site layout & amending multiple pages ( Answered 5 out of 5 stars,   2 Comments )
Question  
Subject: Web Design - Site layout & amending multiple pages
Category: Computers > Internet
Asked by: nakmeister-ga
List Price: $15.00
Posted: 04 Apr 2005 09:58 PDT
Expires: 04 May 2005 09:58 PDT
Question ID: 504741
I'm just in the process of setting up a website, which will have
multiple pages (50+ eventually). I'll have some sort of navigation
menu to help visitors easily find their way around my site. I've got
basic html and style sheet knowledge, but nothing more than that.

My question is this: What methods are there which I can use to be able
to make site-wide changes to my website without editting each page
individually. Mostly I will want to change the navigation menus over
time as I add more content to the site. I know style sheets can be
used to change background colours, fonts, borders etc. but can they be
used to change content? I was considering using frames or inline
frames, but have been told this can create problems when people follow
links from search engines and I'm not sure if frames are universally
supported by all browsers.

I would like to know what different methods I could employ for this,
together with a brief outline of the pro's and cons of each of the
methods, and where I can find more information on them.

Thanks

Nakmeister
Answer  
Subject: Re: Web Design - Site layout & amending multiple pages
Answered By: webadept-ga on 04 Apr 2005 11:54 PDT
Rated:5 out of 5 stars
 
Hi, 

Templating for webpage creation is very important if you are building
a site over 10 pages or so, it is a huge time saver. I've never
created a site over five pages that didn't require some change to the
design, the menu, the buttons, or something. Templating allows you to
make changes to one area, and have those changes propagate through the
site. Much like the thinking behind CSS, which you say you are
familiar with.

As you can probably guess there are many ways to create a Templating
system for your site. The development of these methods has been a
necessity on the Internet since the beginning. Some of the methods
currently being used are more sophisticated than others. Some are very
simple, requiring very little time to put in place.

The simplest solution would be to use design programs such as
Macromedia's Dreamweaver. These design programs have built into them
templating systems that allow you to create content pages rapidly and
change templates for a site.

The main advantage to using a program like Dreamweaver is you don't
need to learn any thing else besides HTML and CSS. All of the pages
remain HTML and CSS basic pages, which means they won't have any
trouble with search engines indexing them.

If all you are looking for is a method to template the navigation
menus and some of the basic designs of the pages, and not anything of
a dynamic nature, then there are no disadvantages to using programs
like Dreamweaver. I suppose the only draw back would be a few hours of
study and a few days of experimenting until you understand the
Template creation and page creation methods for the program you
choose. Each one is a little different.

There is a method of templating, which relies on Frames or Framing (in
fact the reason framing was developed was a first stab at a easy
templating system for basic HTML). Framing has never worked very well,
for the navigation, the browsers or for the search engines. You can
also embed pages into HTML now, but again, it is not the best solution
for websites considering the problems with search engine indexing and
browsers, when there are better ways to go about it.

Your next step up on the "complexity" scale is JavaScript, which
allows you some flexibility in your templating methods.

Keep in mind that as you rise in complexity (meaning the hours you
will have to study to learn the system and maintain it) you also gain
a great deal in functionality. JavaScript is a great example of this.

With JavaScript, several template solutions present themselves. The
most basic is using JavaScript to load from a text file  of XML file,
the menu systems and other areas of the page that remain the same.
JavaScript allows you the flexibility of programs like Dreamweaver,
with out spending the money on programs like Dreamweaver.

So, basically you put your menu HTML in a single file, and a
JavaScript tag in your HTML content pages. On loading of the page, the
JavaScript reads the text file and puts in the HTML from the file to
build your page.

Sounds simple, and it is. The disadvantage to using JavaScript is one:
you have to learn something about it, and two it doesn't work well
with search engines. Javascript needs to be executed by the browser,
not the server. So when search engine robots read the HTML files, they
generally do not execute the Javascript they find in the file (in fact
I'm sure none of them do, but I could be wrong as changes in this area
are constant).

Your next step is into the area of sever side scripting languages such
as PHP and Perl. For templating, PHP has the advantage over Perl for
simple templating. Perl does have some very sophisticated solutions
for templating, which I'm sure at this point are beyond your needs.

PHP is nice because you can start with very little, and do quite a lot
with it. Your ISP server has to have PHP available for you to use it
of course, but it is simple to get started with. In fact on the basic
level it is much like our JavaScript solution earlier. The difference
is that the PHP is being executed when the file is called, so search
engine bots always see the complete HTML for the pages, which the PHP
provides. In fact there is no sign to the bot  that PHP was involved
(unless the page name has the extension of .php of course).

This simple method is called embedded PHP.

At the top of the food chain you have solutions such as Smarty;
monstrous template engines which do all kinds of things and will take
a few months of study time learning PHP and the template engines.
However, you can do just about anything with these  template engines.
The sky is the limits here. Most of these abilities are beyond what
most people want however.

I personally love Smarty (on a programming level) but I rarely run
into a project these days that requires the level of sophistication it
offers. Most of the time I feel like Dreamweaver would have covered
it.

Links for Reference:

Dreamweaver Links:

Dreamweaver MX 2004 - Template Tutorial
http://www.lehigh.edu/~inimr/dreamtemp/

How to Create Dreamweaver Templates (PDF FILE)
http://www.mtholyoke.edu/help/creating-pages/style/pdf/templates.pdf

Dreamweaver Templates
http://www.mtholyoke.edu/lits/csit/documentation/dreamweaver/creating_templates/

Common questions about Dreamweaver
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14714


Javascript Links:

Client-Side JavaScript Templates
http://www.fishwasher.com/jst/page1.html

The Code Project - Create Templates using Javascript
http://www.codeproject.com/jscript/jstemplete.asp





PHP Links:

PHP
http://www.php.net

Smarty
http://smarty.php.net


Perl Links:

Perl
http://www.cpan.org

HTML::Template
http://html-template.sourceforge.net/article.html


Other Links

HTML Toolbox
http://www.december.com/html/tech/tools.html




thanks, 

webadept-ga
nakmeister-ga rated this answer:5 out of 5 stars
Thank you, that was a really helpful answer, with explanation of the
different methods and links to relevant sites it was exactly what I
was after.

Comments  
Subject: Re: Web Design - Site layout & amending multiple pages
From: dalman-ga on 04 Apr 2005 15:52 PDT
 
I was in your shoes three years ago. Four major websites later, I do
all my templating in Dreamweaver. It makes changes really smooth. It's
also good for those of us who hate coding but love to design web
pages.
Subject: Re: Web Design - Site layout & amending multiple pages
From: mobile118-ga on 08 Apr 2005 07:47 PDT
 
I agree dreamweaver is very straight forward, any the coding is good.
Hand coding is better, but if you need to produce large amounts of
code I would use DW. Good examples of template use can be found at
www.domain33.com

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy