Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    362
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Include ssi template

    I have a ssi file I would like to include in my web pages.

    The ssi is called: footer.ssi

    How would I make an include statement to include this in my web page?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <!--#include file="footer.ssi" --> if the footer.ssi file is in the same directory as the calling file. You can add relative directory references too as long as the directories are further down the tree but if you have to go closer to the root of the tree than the current file you need to use:

    <!--#include virtual="pathtodirectory/footer.ssi"-->

    (These instructions are true for an IIS hosted web site, someone with good knowledge of Apache may want to interject Apache's requirements if they are different).
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

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