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

Resource Types


By now, you are familiar with the built-in resource types in OpenCms: Page, Plain, Binary, Image, JSP, and XML template. These provide generic types that are often sufficient for running CMS applications. However, it is often desirable to have more specific definitions of content. In OpenCms, there are two ways of defining custom content formats.

The first is to extend the existing resource types to include your own definition. This integrates well with the existing user interface and back-end data structure, but it is limited to content that can be treated similarly to other OpenCms types.

The second method is to add a new content definition. The OpenCms content definition API provides hooks for serving external data through OpenCms. It provides a generic framework for dealing with data that cannot be expressed well within the OpenCms VFS. While it does not impose many of the limits of resource types, it is far more complex and does not integrate well with existing CMS tools...