Skip to main content
Inspiring
December 1, 2006
Question

Virtual includes and design view

  • December 1, 2006
  • 2 replies
  • 360 views
I am working on a redesign of our Intranet and have found a weird problem
with the includes that I am trying to use. Our Intranet is located at
http://swvtc06/swvtc (I understand that no one will be able to see it), the
swvtc is a virtual directory in IIS. If I code my includes like this,

<!--#include virtual="/include/nav.htm" -->

Then I can see the included file in Dreamweaver, but when I execute the
page, it gives me an error, "Include file not found". So I must change the
include code to,

<!--#include virtual="/swvtc/include/nav.htm" -->

in order for the code to work properly. This however removes the included
file from the design view.

Am I missing something in the site setup?

Thanks,
Drew


This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

December 5, 2006
Drew -

I am actually having a similar problem.

I have an include:
<!--#include virtual="/inc/top.html"-->
which is pulled from pages with in different directories off the root. When I post it to the server, it works properly, but I can't see it in design view.

Also, if I use FILE, instead of VIRTUAL, the include will show, but my absolute references (to an image or CSS file for example) won't show up properly.

I can get around by coding it, but it sure would be nice to see it in design view.
Inspiring
December 5, 2006
Drew

Unless you are running off a properly configured IIS server it is often
better to use FILE includes rather than Virtuals. The issue is that your
intranet has been hung as a virtual directory off the default website found
at localhost.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"Drew" <replytothe@newsgrouponly.com> wrote in message
news:ekpmrn$dq2$1@forums.macromedia.com...
>I am working on a redesign of our Intranet and have found a weird problem
>with the includes that I am trying to use. Our Intranet is located at
> http://swvtc06/swvtc (I understand that no one will be able to see it), the
>swvtc is a virtual directory in IIS. If I code my includes like this,
>
> <!--#include virtual="/include/nav.htm" -->
>
> Then I can see the included file in Dreamweaver, but when I execute the
> page, it gives me an error, "Include file not found". So I must change
> the include code to,
>
> <!--#include virtual="/swvtc/include/nav.htm" -->
>
> in order for the code to work properly. This however removes the included
> file from the design view.
>
> Am I missing something in the site setup?
>
> Thanks,
> Drew
>