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

Content Definitions


Content definitions offer another mechanism for extending the content types that OpenCms will support. Unlike resource types, which merely create a new type of document within the existing OpenCms architecture, a content definition allows you to create a complex, external content control mechanism that does not use the predetermined facilities of resource types. Phrased more simply, content definitions provide a way of storing data that is fundamentally different from existing OpenCms data, but controlling it through the OpenCms back office and publishing system.

The OpenCms developers created a News module (that has since been extended by a number of independent developers), which made use of content definitions to create a completely different type of content. This content is stored in non-OpenCms tables in the database, accessed by a separate pool of database connections, and managed by a custom set of back office classes.

Content definitions are not designed to integrate...