none
Include file not showing up

    Question

  • LINK

    I have an include file on my site that is not showing up.
    This is the syntax I used:
    <!--webbot bot="Include" u-include="../includes/footer.htm" tag="BODY" -->
    It should display an un-ordered list that is a simple horizontal menu at the very bottom of each page.

    I get nothing.  The path and file name looks correct.  The file is there.  The DWT file has the call to the include file and all pages were updated when I added that.

    What am I missing?

    Wednesday, October 13, 2010 4:53 PM

Answers

All replies

  • Have you tried "includes/footer.htm" (without the ../)?

    Jim

    • Proposed as answer by fcphdJim Wednesday, October 13, 2010 5:40 PM
    Wednesday, October 13, 2010 5:06 PM
  • The relative path you are showing is "../includes/footer.htm".

    The posted link is at http://omba.org/test/ . From that location, the absolute path to the include would be

    http://omba.org/includes/footer.htm   (i.e. /includes is a sibling folder to /test)

    and that returns a 404 error. It appears that either the relative path to the include is specified incorrectly, or the /includes folder is not actually a sibling to /test, or you have uploaded the include to a location other than /includes. Check those things out first.

    [EDIT: Yep, Jim's right. Well, we both are... ;-) Entering http://omba.org/test/includes/footer.htm into the address line brings your unordered list right up in the browser. So, the relative path to the include is specified incorrectly, and /includes is not actually a sibling to /test, but a subfolder of /test.]

    cheers,
    scott


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.
    • Edited by paladyn Wednesday, October 13, 2010 5:28 PM
    • Proposed as answer by Cheryl D Wise Wednesday, October 13, 2010 7:36 PM
    Wednesday, October 13, 2010 5:15 PM
  • It's at http://omba.org/test/includes/footer.htm

    Jim

    • Marked as answer by JohnB352 Wednesday, October 13, 2010 5:57 PM
    Wednesday, October 13, 2010 5:18 PM
  • It's at http://omba.org/test/includes/footer.htm

    Jim


    Ah.  Forgot that I was in that test folder, and that it would be affected by that.

    I put the footer.htm file at the root of this test site, and changed the include path to reflect that. 

    Thanks!

    Wednesday, October 13, 2010 5:58 PM
  • Umm... you're welcome.

    cheers,
    scott


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.
    Wednesday, October 13, 2010 6:40 PM
  • Umm... you're welcome.


    Thank you.
    Wednesday, October 13, 2010 6:54 PM