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
About the Author

Chapter 7. Advanced Modules

In the previous chapter, we created a module for transforming XML documents to HTML using XSLT stylesheets. In this chapter, we will look into a few of the more advanced possibilities available in the module mechanism. We will add an administration point to the module, providing an entry in the administration view for transforming XML documents at the click of a button. We will also create a custom launcher class for customizing the way OpenCms delivers content of the generic XML resource type we created in Chapter 5.

In this chapter, we will cover:

  • Creating an administration point for a module

  • Using JSPs for creating an administration screen

  • Editing XML templates

  • Creating a custom launcher class

Adding an Administration Point

Many advanced modules will have some tasks that need to be performed by an administrator. We can integrate module administration into the existing administration view by creating an administration point.

We already have an existing module, com...