Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

css flyout menu include 1

Status
Not open for further replies.

brk1221

MIS
Jan 29, 2002
230
US
I have the following line of code on most of my pages adding a navigational menu:

<!--#include virtual="jmgmenu.html" -->

We just changed servers and now it's not showing up. Any suggestions? Is there another way to display the menu on all the pages?

Thanks
 
Sounds like you don't have SSI (Server Side Includes) properly configured in your new server.

You'll need to look up the SSI configuration procedure for whatever web server you are using.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
I checked with our hosting Co. and they said SSI is supported.
 
Hi,
I use SSI's alot, particularly for including menus etc. but I normally save the file as a .txt file. This file just has the tags that make up the menu or whatever html feature I want to include. Obviously the include file must be in the same directory as the page you want it to be included in or the link to it must have the path to include file if it's not in the same directory

Hope this is of help

Steve
 
virtual" includes should start with a forward slash '/' and be referenced from the site root.

"file" includes are referenced from the document.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
I got it to work when I re-named the file containing the include with a .shtml extention. Is there any way around that. I don't think I can name my home page index.shtml. And I dont want to re-name all my pages.

Thanks
 
Is there any way around that.
Yes!


How? Depends on the server technology

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
I put in a request to our host. It's a Linux box running Apache 2.0.5.1 That's all I know about it so far.
 
Ok add this to your root .htaccess file

Code:
AddType text/html .html
AddHandler server-parsed .html
That will make files with a .html extension be parsed for SSI directives.


Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
I created one and uploaded it and it looks like it's working!

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top