Same navigation bar on many pages of a website ..., Any solution other than the "copy/paste" thing ? |
Same navigation bar on many pages of a website ..., Any solution other than the "copy/paste" thing ? |
tosca |
Sep 21 2006, 07:52 PM
Post
#1
|
Group: Members Posts: 2 Joined: 21-September 06 Member No.: 196 |
I'm going to have the same horizontal navigation bar on many pages of my website (like the HTMLHelp.com / HTML Reference / CSS Reference / FAQs / etc. at the top and bottom of the pages of this site).
Is there any way to put the related HTML in a separate linked file (as for a CSS sheet or a script) in order not to have to copy / paste it in every single page ? This would be much more convenient for future updates too. Thanks for helping. |
pandy |
Sep 21 2006, 08:13 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Sure. Use SSI (server Side Includes). If you already use a scripting language such as PHP you can use that instead.
http://htmlhelp.com/faq/html/design.html#include-file |
tosca |
Sep 22 2006, 07:34 AM
Post
#3
|
Group: Members Posts: 2 Joined: 21-September 06 Member No.: 196 |
Thanks a lot for the answer and the link. This FAQ is a real treasure, and I'll be sure to read it before asking other trivial questions.
|
Lo-Fi Version | Time is now: 19th April 2024 - 02:06 PM |