OpenCms 7 Development
From ThemesWiki
| Official Page |
| Project Documentation |
| Download |
{{ SourceBook2 |
Contents |
Accelerating Template Development Using WebDAV
With the introduction of WebDAV support in Version 7, an IDE such as Eclipse can be used to create and edit templates and other module resources. Let's go over the steps necessary to do this.
Install the Eclipse WebDAV Plug-in
The WebDAV plug-in must first be installed into Eclipse. This is done through the Eclipse update manager by selecting Help -> Software Updates -> Find and Install . When the dialog appears, select the option, Search for new features to install:
After pressing Next, check off the site named The Eclipse Project Updates and press Finish:
Next, select a nearby mirror site and press OK. In the next dialog box, the feature for FTP and WebDAV support will appear in the list, and should be checked. Pressing the Next button and agreeing to the terms will install the feature.
If the feature does not appear, then it probably means that a newer version of Eclipse is being used. Since the WebDAV plug-in is no longer in active development, it is not included in the feature update list, and will thus have to be added manually. In this case, click the Cancel button and repeat the process. But at the Update sites to visit dialog box, select the New Remote Site button, and enter the following:
The URL contains the update site for the location of the feature we need. After adding the site, selecting it, and choosing another mirror location, several items will appear in the list. Only the FTP and WebDAV items are needed.
After installing the feature, Eclipse will need to be restarted.
Create a Site Within Eclipse for the Server
The next step is to add the 70-649N10-004220-701 WebDAV location representing the OpenCms site into Eclipse. The location is added through the Site Explorer view, which can be added to the default Java perspective. Select Window -> Show View -> Other to locate the view, and expand the Target Management node:
Selecting the Site Explorer item will add the view to Eclipse:
Right-click in the previous window and select New -> Target Site to add the location. Since we want to access the repository via WebDav, select that option and click Next. In the next dialog box, the URL and credentials for the site can be entered.
Note- The server must first be running before we can enter the URL and the credentials information.
Note- The Server URL uses the webdav servlet rather than the opencms servlet. The user credentials can be of any user for whom an OpenCms login account has been created.
Import Content into the Project
Once the plug-in has been installed and the site has been added, the last thing to do is to import the content from the VFS into our project. This is done by selecting the folder in the project where the content should go, and right-clicking on it. Select the Import option and in the dialog box expand the Other node. Select the WebDAV option and press Next to specify where the files should be imported into the project. After pressing Next again, the site we have just added will appear:
Press Next again, and a list of resources at that location will appear. The list can be navigated to locate the resources we want to mirror into our project. For templates, we may want to locate the resources located in our module:
/system/modules/com.deepthoughts.templates
Select that node, and press Next. We can then select the resources to be imported into our project:
The selected files will then be copied into the local project directory for editing. We then will be able to edit the JSP files in Eclipse. Any local changes made can be synchronized with the VFS repository at any time, using the Synchronize view. This view can be added the same way the Site Explorer view was added, but appears under the Team node. After adding this view, it will track any changes made to the files that were imported.
The view contains buttons for uploading any changes to the VFS and for downloading any VFS changes to the local project. Using this feature can speeden up the development time for a JSP template, as the IDE can be used to make changes which are then quickly synchronized with the VFS for viewing.
Additional References
- For instructions in Building OpenCMS 7, click here.
- For instructions on Installing OpenCMS, click here
- For instructions on Developing Templates in OpenCMS 7, click here
- For instructions on Customizing OpenCms Site, click here
- For instructions on Troubleshooting Open CMS Installation, click here
- For instructions on Installing Open Source CMS, click here
- Lawyers Liability Insurance
Source
The source of this content is Chapter 4: Developing Templates of OpenCms 7 Development by Dan Liliedahl Packt Publishing, 2008).logo design by Kevin Josh 2010
Executive Editor Sean Lopez own : SEO Company and provider of Link Building Services and SEO Services
And Like Costumes and Halloween Costumes and criar sites and desenvolvimento de sites and Unhas
And Like The Global Information Network and Global Information Network
And Like Scholarship for Moms and Pearl Necklace and Pearl Necklaces and Iphone App Developers and Fine Jewelry and Affordable Web Design and Email Marketing and Adoption.
- link building service |
- social bookmarking service
- article submission service
- directory submission service
- squidoo lens creation service
Atlanta Printing Chicago Printing Las Vegas Printing San Francisco Printing
And Like Scholarship for Moms and Pearl Necklace and Pearl Necklaces and Iphone App Developers and Fine Jewelry and and Email Marketing and
Adoption and Pearls and Ceramic Mills Logo Designby ThemesWiki.org Kevin Josh 2010 Official Partners
