Virtual directories allow you to replace long and cryptic URLs of important pages with easy to remember links.
Let’s say you are launching a promotional campaign (printed or online) and would like to direct people to a specific page of your website. It's much better to use a link that's easy to remember like "www.mywebsite/winterpromo" than to make people enter a long URL with all those "index.cfm?pagepath=...etc."
For instance, for this Help website we've created a virtual directory called "editing". It allows people to get directly to that page by simply entering this friendly URL into their browser's address field:
Managing virtual directories
All your virtual directories are managed in Apps / Virtual Directories. You can have as many as you want. Virtual directories are not added to pages as content blocks; you simply create them and they become available right away.
Creating a virtual directory
- Click the New button on the toolbar.
- Pick a name for the virtual directory. It should not contain spaces, so rather than "winter promo" use "winterpromo". Also, certain names are reserved by YWD and cannot be used. They include "admin", "display", "images", "library", "site" and a few others. In our example above, the name of the virtual directory is simply "editing".
- Either select a page from your website from the list (by far the most common use) or enter the URL of an external website.
- Click Save. The virtual directory is created.
A virtual directory is not added to the page as a content block; you simply create it in Tools / Virtual Directories and you're done. Make sure the page to which the virtual directory applies has already been published.