Click to See Complete Forum and Search --> : [RESOLVED] i hate my menu...
getret
02-05-2007, 10:54 AM
Ok, I have a multi level vertical menu on my site. Every time I want to add another link to the site I have to update nearly every page on my site and it takes forever.
Is there some way to have a menu (css, or a css+javascript) referenced from each page? Then when i want to update the menu I only need to update it on one page, and the other pages will see it.
Maybe some menu page containing only the menu???
Any ideas?
tracknut
02-05-2007, 11:20 AM
Do a search for "include file" - there are several ways you can do this, that are well documented over and over. A php include is the most common method, it seems, I'm not sure a client-side solution (other than FrontPage and presumably DW) will address this.
Dave
getret
02-05-2007, 12:33 PM
thanks. i found a ton of stuff on server side includes, but i can't get it to work yet.
i guess this
<!-- #include file="menu.html" -->
is supposed to work, but I don't know where to put the menu file.
right now it is in the root directory, but it doesn't seem to be doing anything.
i must be implementing it incorrectly.
EDIT: my site host offers SSI so it should work if i can figure out how to get it going.
ray326
02-05-2007, 12:48 PM
Rename your pages *.shtml and see if that helps.
getret
02-05-2007, 12:56 PM
that got a
<!--#echo var="DATE_LOCAL" -->
working, but not my
<!-- #include file="menu.htm" -->
EDIT:
needed this instead.
<!--#include virtual="menu.htm" -->
it works now.
thanks everyone.