Announcement

Collapse
No announcement yet.

#include help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #include help

    I'm curious as to why the following does not work.

    Let me explain.

    Using:

    Code:
    <!--#include file="menus/top_menu.htm" -->
    works fine if the directory "menus" is found in the directory you are in.

    Using:

    Code:
    <!--#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...

  • #2
    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.

    Comment


    • #3
      Hey great resource. Thank-you. Seems like using virtual path worked instead of file as I was using.

      Take care!

      Syl...

      Comment


      • #4
        Not a problem, glad I could have been of some help.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X