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

Creating and Editing Content

Thus far, we've examined how to navigate through the VFS using the explorer view. However, it is through the explorer view that we create and edit content, as well.

To start, let's create a working area in which we can store some test files. In the left-hand file-tree pane, click on the (Root folder) icon. This will take you to the document root. The central pane of the explorer should now show a couple of folders and the index.jsp file. Here, we will create a new folder.

Creating a Folder

Click on the magic wand icon to open a file-creation dialogue:

The first step in creating a new file is to declare the file type. Folder will create a new directory. This is what we want. However, before moving on, let me briefly explain the other choices on this menu:

  • Page is an HTML document that can be edited in the WYSIWYG editor. We will create one of these soon.

  • Link creates a pointer from this location to a document existing at another location. This is similar to a symbolic...