Book Image

Building Websites with OpenCms

Book Image

Building Websites with OpenCms

Overview of this book

This book takes you through the process of creating content-rich websites and applications using OpenCms. Although powerful and flexible, OpenCms can be daunting on first approach, but its advanced features reward the investment in learning. This book exists to ease Java developers into getting the most from OpenCms. OpenCms OpenCms is a professional-level, open source Website Content Management System, with which you can create and manage complex websites. Based on Java and XML technology, it fits into almost any modern IT environment. With hard-won experience of the practical difficulties faced by developers working with OpenCms, this book is the embodiment of the author's expertise, and the perfect way to master the system.
Table of Contents (12 chapters)
Building Websites with OpenCms
Credits
About the Author
Introduction

Using Modules


The purpose of a module is to provide a container, easily imported and exported, to hold extensions to OpenCms. The temptation is to consider these 'extensions' to be complex applications including dozens of files of Java code, XML templates, and JARs. While the module mechanism would certainly work well for such an extension, many modules contain only a handful of files—usually templates and JSP files. In fact, some of the modules Alkacon releases are composed entirely of Page documents designed to add documentation and help-text to the system. In Chapter 2, for instance, we installed the help system module, which contains the help text for OpenCms.

Rather than considering modules strictly from the perspective of providing additional code, consider them as vehicles for encapsulating data, be it code or content, that could be useful in situations other than the immediate context. In other words, when looking at a set of data that you think might be a good candidate for a module...