PDA

View Full Version : #include help


Sylvus
Sun 3rd Aug '03, 8:39pm
I'm curious as to why the following does not work.

Let me explain.

Using:

<!--#include file="menus/top_menu.htm" -->

works fine if the directory "menus" is found in the directory you are in.

Using:

<!--#include file="../../menus/top_menu.htm" -->

does not work.

Using any ../../ in the path for an included file always results in " [an error occurred while processing this directive] ".

I want to have one menu system placed in a menu subdirectory from the root and use this menu system through-out the entire site. Unfortuantly, I cannot get it to work if I am in any directory except for the root directory since ../../ does not work.

Why is that?

Syl...

Floris
Sun 3rd Aug '03, 8:49pm
Maybe it isn't possible, maybe this helps it explain how to use it: http://www.w3.org/Jigsaw/Doc/User/SSI.html and hopefully helps you debug your problem.

Sylvus
Sun 3rd Aug '03, 9:15pm
Hey great resource. Thank-you. Seems like using virtual path worked instead of file as I was using.

Take care!

Syl...

Floris
Mon 4th Aug '03, 5:56am
Not a problem, glad I could have been of some help.