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

Chapter 5. The OpenCms System Architecture

In this chapter, we will examine the structure of OpenCms, looking at the mechanisms that drive the content management system. Where appropriate, I will include Java code samples; however, the majority of the material in this chapter should be useful even if you are not a Java coder. In this chapter, I will cover:

  • Resource types

  • Content definitions

  • The Virtual File System (VFS)

  • The class structure of OpenCms

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...