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

Internationalization


In Chapter 2, we looked at configuring character set encoding (ISO-8859-1 and UTF-8) for OpenCms. In Chapter 3, we looked at loading and using multiple languages for the Workplace. In this section, we will examine methods of creating multi-language sites using OpenCms.

While the OpenCms Workplace was designed to accommodate multiple languages, there is no formal structure to assist in developing multi-language websites. While it is possible to create multiple bodies (e.g. one for each language) in a particular page document, the properties can only be in one language. Consequently, it is usually easiest to create a separate document for each language.

The most widely deployed method of structuring multi-language sites with OpenCms is to create separate directories, one for each language, in the root directory. For instance, to host both German and English versions of my site, I would create two root-level directories: /de/ and /en/. Inside these, I would place language...