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
    Aug 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Nested Virtual Includes?

    I'm trying to figure out how to call a file ( with the <--#include virtual='etc'--> tag) within a called file. Every time I try to do this, it calls the original included file, but displays the code of the include, rather than actually calling the file in. Can anyone point me in the direction of how to get this to work?

    Thanks,
    ashattuc

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, I do it like this: in a page is the call for an include:
    <!--#include virtual="include.html" -->

    then, in the include.html is another call:
    <!--#include virtual="anotherinclude.html" -->

    or, if it's a cgi:
    <!--#exec cgi="/cgi-bin/makeitwork.cgi" -->

  • #3
    Registered User
    Join Date
    Jun 2002
    Location
    Arizona
    Posts
    175
    Thanks
    0
    Thanked 0 Times in 0 Posts
    make sure to put spaces before the directory for example:

    <!-- #include " /dir/file.asp" --> ' wont work!
    <!-- #include "/dir/file.asp" --> ' will work!

    maybe i'm dumb, but i ran into that i spent forever trying to figure out the problem


  •  

    Posting Permissions

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