dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: SSI data in multiple folder paths

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    26

    SSI data in multiple folder paths

    Hi all,

    I've finally discovered SSI and think it's the greatest thing since sliced bread. The problem I'm having is reusing the include files on a different folder level.

    For example, my include file test.incl has this content:
    <img src="images/test.jpg">

    the index.shtml document has this line:
    <!--#include file="includes/test.incl" -->

    That works for all documents on the same folder level, but as soon as I go a level deeper, the link breaks.

    It doesn't seem to matter if I change the path in the lower level document to
    <!--#include file="/includes/test.incl" -->
    or
    <!--#include file="../includes/test.incl" -->

    How can this be fixed?

    Thanks,
    Stefan

  2. #2
    Join Date
    Oct 2010
    Posts
    26
    Just a push... isn't anyone here using server side includes? Would be great to get a hint.

    Thanks,
    Stefan

  3. #3
    Join Date
    Oct 2010
    Posts
    26
    Ok i can contribute myself now, as I have figured it out and the answer is simple (once you know):

    Substitute 'virtual' for 'file'.

    That's it?
    Yes, that's it.

    Stefan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles