I typically like to answer questions, but every now and then I'll just pass them on. Being a CFEclipse guy and knowing next to nothing about Dreamweaver, I thought I'd pass along this cry for help:
We have an IIS virtual directory on our site containing global images, css, js, etc that's used across many sites. However, in Dreamweaver, when the user is designing, it doesn't seem to be able to recognize the virtual directory. This is causing my boss all sorts of heartburn as he develops his little HTML pages with the WYSIWYG. Since it's not working for him, he's all over me for a solution, which I have yet to find.
Outside of this specific question, would folks recommend any Dreaweaver sites or blogs? Is there a Dreamweaver Jedi Master out there?
Archived Comments
Point your newsreader to MM's (sorry, Adobe's) Dreamweaver newsgroup located at: forums.macromedia.com. There are lots of really helpful and knowledgeable people there.
Might also want to try ProjectSeven's DW newgroup at news://forums.projectseven....
I have no idea why, but in a similar server setup, I've had better luck with Dreamweaver MX 2004 than Dreamweaver 8 for this type of issue.
I'd love to hear a better solution myself.
Dan,
How did you set this up in DW MX 2004? That's the version I'm currently using and haven't been able to make it work either.
Thanks,
Bob
Like Ray, I'm more of a CFEclipse guy now-a-days, but I seem to remember a setting in the site setup panel, in DW, for the image directory. Don't know though, that might require some testing....
(I misspoke about 2004/DW 8. I have an recognizing an included folder, but not this specific one.)
Back on topic: Do you use direct file access to your server? If so, I believe that Dreamweaver is looking directly at the server file system and won't see the virtual directory. (If you browse to the web server root folder with your file system, you won't see it either)
IIS appends the virtual directory to the webroot when it answers requests. So you will have to switch to a method of connecting to the server that will go through IIS. (FTP or webdav?)
In any case, I believe it's more of an IIS issue / server file system issue than Dreamweaver specifically.
It's possible I'm wrong since it's been about a year since I've dealt with this issue. (Although I just did a quick test on my system to confirm this) You should check to see if anyone has a similar issue with Eclipse, direct file access, and IIS virtual directories.
Dan
IS there any way you could map the drive to your system? Dreamweaver should be able to see it fine then.
There really isn't a surefire way to accomplish this with Dreamweaver, that I am aware of.
The only solution that may work to a degree is to set up an FTP site rather than a local one, and create an FTP virtual directory for the image folder. You still won't be able browse or drag and drop them, though since you can't set the default image directory with an FTP site.
Preview will at least work in the WYSIWYG view, though, unless you download the entire contents of that image directory to the temp directory that Dreamweaver creates with the FTP site.
Is he writing static page content or just writing drafts for content that will be put into the database?
If it's dynamic content, it would be a heck of alot easier to set up a basic FCKEditor interface and set your file paths in the config file. Plus, truthfully, FCKEditor usually spits out cleaner HTML than DW's design view does.
I'm an Adobe Community Expert (formerly Team Macromeida) with a focus on Dreamweaver.
From what I konw about its file system access, Dreamweaver doesn't look into virtual folders, it only looks at the file system itself to display image and CSS, etc. I believe that any solution would require a copy of the files on his local system.
One way to do that would be to directly copy the contents of the virtual folder into the site your boss is working on so the assets would be available within Dreamweaver. Of course, you'd need to be sure (and who can be with bosses) that the contents of the folder were kept up to date, and also that no changes to made to the local "virtual" folder files, as any uploads made probably wouldn't be placed into the proper remote location.
Beyond that I think you'd need to look at using an "NTFS junction point". Haven't used it myself, but search Google for that term and the first couple of results give a little info on it. However, even with this, it would require a local copy of the files, unless the junction point could be pointed to the server, or a staging sever, or something similar.
Danilo,
At first glance, NTFS junction points look to be exactly what the Dr. ordered. I've passed the information on to our server admin's who've agreed to test tomorrow!
Thanks for this exiciting tip. We've used DFS for years, but this is the first I've heard of a Junction Point!
Thanks Again,
Bob
Does Dreamweaver recognize directory aliases? Whereas IIS recognizes virtual directories and ignores aliases, I am willing to bet that Dreamweaver would ignore virtual directories and recognize aliases. So it could work that you could create a directory alias in the webroot in the same way that IIS has the virtual directory.
I know it has been awhile on this post, BUT I GOT IT!
Found this topic while investigating why DW8 would not delet files from a Virtual Dir in my FTP when synchronizing.
ANYWAY!, PROBLEM SOLVED ON ALL POINTS! WOOHOO!
Solution for Get, Put and Delete from an FTP virtual dir:
Example:
Physical FTP root: c:\ftproot ON SERVER
Physical Dir for virtual: c:\myvirtualdir ON SERVER
ftp is ftp://ftp.mysite.com/ (accesses c:\ftproot ON SERVER)
ftp virtual: ftp://ftp.mysite.com/myvd/ (points to c:\myvirtualdir ON SERVER)
OK, here is what you do:
- Do your normal FTP setup in DW.
- Then, in your SERVER ftproot, create a directory with the name of the alias (myvd). So, using the above example, you will have a BLANK directory in c:\ftproot named myvd (i.e. c:\ftproot\myvd ON SERVER).
What happens is that Dreamweaver sees the PHYSICAL dir to recognize for structure, but the FTP commands are being executed on the FTP virtual root!
Works like a charm!
Ken
NTFS junction point's rock, totally solves dreamweaver problem mentioned above.