WebBrowser

If you only want to browse and view the files and folders inside OpenCms, you can access OpenCms through WebDAV with a web browser.

Open your favorite web browser and point to url of the OpenCms WebDAV servlet (see "Using WebDAV"). Now you will be asked for a user name and a password. Use the same credentials as you want to login to the workplace. This works only if you turned on listings in the configuration (as default this is turned on). For more information about the configuration see " Configuring WebDAV".

WebFolders on MS Windows XP (SP2)

There are two ways in MS Windows XP to create a web folder to access WebDAV servers:

  1. Open Internet Explorer and click "File->Open...". As the address (URL) use the URL to the WebDAV servlet of OpenCms (see "Using WebDAV"). Don't forget to activate the checkbox "Open as web folder". If everything was entered correctly you should now be asked for your user name and password.
  2. Open the wizard to create a new network drive and use the link at the bottom to connect to a network server. After the welcome page you will see a page where to choose a service provider. Select "Other network resource" and proceed to the next page. Here you have to enter the URL to the WebDAV servlet of OpenCms (see "Using WebDAV"). If everything was entered correctly you should now be asked for your user name and password.

Unfortunately you can do every file operation (copy, move, delete and create), but you cannot open files on a double-click. To open a file you have to copy it to a folder on your hard drive and open it form that place.

Eclipse WebDAV plugin

Installation

  1. Open the Update Manager
  2. Search for new features to install
  3. Check "The Eclipse Project Updates"
  4. Choose "Eclipse FTP and WebDAV Support"
  5. Restart Eclipse

Attention: This plugin is not under active development!!!.

Creating new Target Sites

Now you will find a new view "Target Management -> Site Explorer", where you have the possibility to create a new target site. While creating a new target site you will be asked for the type of the target site. Choose "WebDAV" and proceed to the next page of the wizard.

  • Server URL: the Url of the OpenCms WebDAV servlet (see "Using WebDAV")
  • User: your login name in OpenCms
  • Password: your password to login in OpenCms
  • Proxy Server URL: the Url of your Proxy Server if one exists
  • Connection Timeout (in seconds): how long should the plugin wait for an answer before giving up

Export / Import

After you have created the target site to use, you have to first import or export files to/from this target site.

If you choose to import files, create a new folder, right click on it and select "Import...". As the import source you must choose "Other -> WebDAV" and proceed to the next page. There you have to select the folder where to import the files coming from the WebDAV server.

On the next page of the wizard you have the possibility to create a new target site or to choose an existing one. Select the target site you created before and click "Next". Now you have the choice to import the whole site (depending on the size of the site this could take some minutes) or to import a selected folder out of the site.

After that Eclipse compares the files on the WebDAV server to those already found in the folder in Eclipse and presents a list to show the differences between the local and the remote folder. Select the resources you wish to import and finish the procedure.

The export functionality works similar to the import of files.

Synchronizing

After you either exported or imported files and folders to/from the WebDAV server, you are able to synchronize these folders. This works like synchronizing with a CVS or SVN repository. Unfortunately you cannot remove folders from the synchronization view.

To remove a folder from synchronization, you have to edit this file in the workspace:
\.metadata\.plugins\org.eclipse.core.resources\.projects\{PROJECT_NAME}\org.eclipse.team.core\.deployments