[Web4lib] Updating a navigation menu
Thomas Dowling
tdowling at ohiolink.edu
Wed Mar 28 11:06:18 EDT 2007
On 3/28/2007 10:48 AM, Rachel Vidrine wrote:
> I would like to know of a quick and easy way to update a text-based
> navigation menu that is on every page of a site. I thought of creating
> the menu as a server-side include, but that would not work because some
> of the files are in folders, so the links could vary depending on which
> directory of the site each page is located. I know there has to be an
> easier way than manually modifying the menu on each page. Is there a
> script of some sort that I can use?
>
Write the links in the include relative to the top of the site:
<ul>
<li><a href="/catalog/">Our catalog</a></li>
<li><a href="/catalog/tips">Catalog search tips</a></li>
<li><a href="/e-resources/journals/alpha.html">Our
e-journals, by title</a></li>
<li><a href="/e-resources/journals/subject.html">Our
e-journals, by subject</a></li>...
--
Thomas Dowling
tdowling at ohiolink.edu
More information about the Web4lib
mailing list