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

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.example.genericxml.xslt, to which we can add an administration point. In the last chapter, we created a scheduled task to run a batch transform of the XML files. However, it would be nice to be able to run the command with the click of a button, instead of waiting for the task to run. In this chapter, we will implement such a screen in the administration view.

The first thing to do is configure the module for an administration point. To do this, switch to the administration view and go to Module management. Choose Administrate from the popup menu of the com.example.genericxml.xslt module. On the first screen of the module administration wizard, check the Administration point box, and then continue through the rest of the...