Search Engine Optimization > Web Design > Same head/menu in more pages. Editing once.
Same head/menu in more pages. Editing once.
Posted by Fons on July 14th, 2003

If I want a site with 5 pages but all with the same menu
(links to the other pages, email-address etc.). Is there
a possibility to make some HTML-macro ? So define the
menu once. Put it on Internet once. And all the pages do
have some include-instruction to include the menu/head.
So they all do have the same menu with the links. Or
do I have to change the head in all the pages myself if I
want to change it ? It's possible with a picture, but with
some HTML-code ? Or do I have a possibility to make some
macro in e.g. Frontpage. Then you get the same code 5 times
but Frontpage takes care of the copies.

Thanks,
Fons




Posted by Adrienne on July 15th, 2003

Gazing into my crystal ball I observed "Fons"
<fonewsNO@SPAMxs4allPLEASE.nl> writing in news:3f130794$0$156
$e4fe514c@dreader7.news.xs4all.nl:

You can do what is known as Server Side Include. Your host needs to
support it, either using SSI, ASP or PHP. The syntax is pretty simple:
<!--#include file="menu.inc" -->

If your host does not support SSI, or does not support any type of
scripting, you can use preprocessor.

You might get suggestions about doing a menu in Javascript, but that is a
bad idea, because visitors without Javascript will not be able to navigate,
especially search engines.

More information:
http://www.allmyfaqs.com/faq.pl?Incl...ile_in_another

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com

Posted by Fons on July 15th, 2003

Thanks for the help; I'll try it. I'm a Pascal programmer and was surprised
that this wasn't a simple one-of-the-first-things-to-learn.

Fons.



Funbolt.com - Entertainment portal, wallpapers, sexy celebs