Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Virtual includes and design view

LEGEND ,
Dec 01, 2006 Dec 01, 2006
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


TOPICS
Server side applications
358
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 04, 2006 Dec 04, 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
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 05, 2006 Dec 05, 2006
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines