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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Includes file references (html)

    I'm looking for some help regarding use of includes files.

    I'm setting up a basic html based site (i.e. not php, etc.).
    I have a /includes folder that contains all of the referenced includes .htm files

    This works great, as long as the site is set up under a sub-folder. But the includes references stop working if I set up the site under the root /web/ folder.

    For example, the includes references work fine when using this structure:
    /web/
    /web/folder/index.htm
    /web/folder/includes/

    But, when using this structure, the include references fail:
    /web/
    /web/index.htm
    /web/includes/

    I'm somewhat of a html rookie ... Is there a server setting that I'm missing? Is there something about 'includes' references that I'm missing?

    Any suggestions are appreciated.

    Thanks.

  • #2
    New Coder
    Join Date
    Jun 2010
    Posts
    16
    Thanks
    0
    Thanked 2 Times in 2 Posts
    It appears that you are using a relevant file path. If you are doing this, try placing two dots in front of the leading slash like this....

    <!--#include file="../includes/file.html" -->

  • #3
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think your file path is correct. Have you try to use xml for providing your file path. It may be useful for configure your file settings.
    Last edited by Apostropartheid; 06-18-2010 at 11:29 PM.


  •  

    Tags for this Thread

    Posting Permissions

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