Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

navigation management

how best to make menu managing easier?

2:23 pm on Jul 13, 2010 (gmt 0)

New User

10+ Year Member

joined:June 2, 2008
votes: 0

I am new-ish to using this site. I don't know if I am posting to the right place.

Is there a convenient way to manage the navigation updating on sites? I'm overhauling a site (having been away from regular web work for a bit) and it would sure be nice to be able to update the menu in one place and have it change throughout the site. Is that possible?

I hand code but I'd sell out briefly to a widget that allowed me to do this.

6:57 pm on July 13, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
votes: 0

Static html pages: use an SSI include.

<!-- #include virtual="/includes/my-nav.html" -->

Normally this requires the files be named with an .shtml extension, but if it's Apache, you can tell the server to parse .htm/.html with a directive in .htaccess:

AddHandler server-parsed .html

Many will suggest using php includes here, which is an option, but it requires either renaming all files as .php or doing the same thing as above, telling the server to parse .html files as PHP. IMO PHP is a robust scripting language and this is overkill for the simple task of file inclusion only, this is what SSI is for.

Windows servers have similar functions but don't recall how to implement them ATM. :-)

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members