English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It must be possible some way to control the menu system on a website by only editing one file, because I run 4 websites in one and I have to change the menu very often and with loads of pages its takes a long time to edit them all so is it possible to use the CSS to control the menu links?
If so how or any other way of doing it.

2007-05-19 13:09:51 · 2 answers · asked by sbraidley 3 in Computers & Internet Programming & Design

2 answers

If you want to just change the appearance, then yes, use the .css file. If, however, you want to change the contents regularly, that's a different story.

The easiest thing is to cut the entire menu code from your pages, and put in a separate menu file. Then, using 1 line of code on your pages, have them load the menu file, via server side includes. That way, you change the menu file, and all pages that load it are automagically replaced with the new one.

2007-05-19 13:17:28 · answer #1 · answered by Robb in Highlands 3 · 0 0

Its failry easy to do with includes shtml.. you just put all your menu in a file by itself and then include that file on whatever pages you want the menu.

I have seen some CSS menu tricks but just for formatting (after all it is a style sheet control)

You could also use php,asp java etc to do your menus.

2007-05-19 20:16:24 · answer #2 · answered by Tracy L 7 · 0 0

fedest.com, questions and answers