Forum Moderators: open

Message Too Old, No Replies

Sharing navigation menu in pages

         

Jakotsu

4:38 pm on Nov 8, 2005 (gmt 0)

10+ Year Member



Hi,
Everytime I change something on my site's menu I have to manually edit lots of pages... is there form to put this menu in a separate file and invoke it from every page?

Is there any other method different than frames for this?
Thanks.

BlobFisk

4:43 pm on Nov 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Server Side Includes will do exactly what you are looking for here!

This is a file (or files) that you reference on each page. Changing this included file means that the section that it covers changes sitewide.

HTH

directrix

6:56 pm on Nov 8, 2005 (gmt 0)

10+ Year Member



As an alternative to SSI, a decent editor, such as UltraEdit, will enable you to easily find/replace a string (possibly by regular expression) across thousands of files.

Shadowkiller

11:11 pm on Nov 8, 2005 (gmt 0)

10+ Year Member



You can also do it in PHP really easily.

directrix is also right, there are website editors that will do that for you. However it does force you to upload every page instead of one file. It can also introduce the element of user error pretty easily, ie some pages getting the change and others not because a slight variation code. However calling for an outside file does add a little to your server load. So both have their disadvantages and advantages.

Jakotsu

3:42 pm on Nov 9, 2005 (gmt 0)

10+ Year Member



Thank you very much, I'll try the SSI because I don't hav too much traffic and the server is really fast.