Book Image

OpenCms 7 Development

By : Dan Liliedahl
Book Image

OpenCms 7 Development

By: Dan Liliedahl

Overview of this book

<p>OpenCms is a professional-level open-source Website Content Management System, based on Java and XML. Many companies or organizations have requirements that go beyond what is available in the standard OpenCms application. Thankfully, OpenCms can be used by Java developers to create sophisticated add-ons and customizations that extend the power of OpenCms in virtually unlimited directions.<br /><br />Targeting version 7 of OpenCms, this book is for Java developers interested in extending and further customizing OpenCms through its Java API.<br /><br />Starting by showing how to set up a development environment for OpenCms work, the book moves you through various tasks of increasing complexity. Some of the common tasks covered are building OpenCms, XML asset type development, templating, module development, user and role setup, and search integration. In addition to these common tasks some more advanced topics are covered such as self-registering users, RSS support, developing custom widgets and extending the administrative interface. All the topics include examples and are presented while building a sample blog site. <br /><br />The skills you develop will make you an OpenCms developer to be reckoned with!</p>
Table of Contents (16 chapters)
OpenCms 7 Development
Credits
About the Author
About the Reviewer
Preface
Index

Setting Up an Eclipse Environment without Building OpenCms


As mentioned earlier, it is not necessary for us to build OpenCms if we just want to develop code. In this case however, we want to create a library that allows us to easily reference the OpenCms java files. To do this within Eclipse, we must first go to the Window > Preferences screen and expand the Java > Build Path > User Libraries node:

Click the New… button and enter the name of our new library, OpenCms_7RC2, and then click OK. We now specify the jar files we want to put into our library, by using the Add JARs… button. In the dialog window, navigate to the OpenCms installation and select the opencms.jar file. Any new project we create will be able to add this Library to the build path and use the OpenCms API.