O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing and Customizing OpenCms 6

Book Description

A complete guide to set up, configuration and administration

  • Understand the OpenCms web publishing process

  • Learn how to create your own, complex, OpenCms website

  • Develop the skills to implement, customize and maintain an OpenCms website

In Detail

This book takes you through the process of creating content rich web sites 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 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. Now at version 6, OpenCms has blossomed into a mature and proven content management system.

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.

A practical guide to creating and managing your own website with this proven Java/JSP based content management system. 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 does not cover extending the operations of OpenCms with Java development. The focus is on OpenCms as a complete CMS platform in itself. It does use some JSP for extensions where required.

About this New Edition

Based on customer feedback from the acclaimed first edition "Building Websites with OpenCms", this book concentrates on the process of setting up an OpenCms 6 website, with particular attention to the new features of OpenCms 6. The 120 pages in the previous OpenCms title from Packt that covered set up and administration issues have been updated for Version 6, with over 80 new pages added on new features and broader coverage of OpenCms 6 from a non-developer point of view. If you own the previous edition, and are primarily an administrator or manager of OpenCms websites, then we recommend you buy this edition. If you are primarily a developer then you may want to consider our forthcoming title specifically on OpenCms v6 Development. For information on upgrade offers for exisiting buyers please Contact us

Table of Contents

  1. Managing and Customizing OpenCms 6
    1. Managing and Customizing OpenCms 6
    2. Credits
    3. About the Author
    4. Preface
      1. Downloading the Example Code for the Book
      2. Errata
      3. Questions
    5. 1. Introduction to OpenCms
      1. What is a Content Management System?
      2. What are Content Management Systems For?
        1. Target Medium
        2. Target Size
        3. Target Model
        4. Is OpenCms the Right CMS?
      3. An Overview of the OpenCms System
        1. Features of OpenCms
        2. OpenCms is Open-Source Software
        3. The History of OpenCms
        4. The OpenCms Community
      4. The Purpose of This Book
      5. Technical Overview
        1. The Web Server and Java Servlets
        2. The Database
        3. Pages, Templates, and Java Server Pages
        4. Bringing it Together
      6. A Few Closing Notes
      7. Summary
    6. 2. Installing OpenCms
      1. Prerequisites
        1. Configuring the MySQL Database
          1. MySQL on Linux
          2. MySQL on Windows
          3. Finishing the MySQL Setup
        2. Configuring the Tomcat Servlet Engine
          1. Linux Configuration
          2. Windows Configuration
        3. Check Your Configuration
        4. Tuning the JVM
      2. Installing the OpenCms WAR File
      3. Running the Install Wizard
        1. Finding your MAC Address on Linux
        2. Finding your MAC Address on Windows
        3. If You Don’t Have a MAC Address...
        4. Continuing Installation
      4. Manually Configuring Settings
      5. Installation Troubleshooting
        1. Crashes During Module Installation
        2. Restarting Tomcat versus Reloading OpenCms
        3. MySQL User/Password Changes
        4. Finding More Installation Help
      6. Summary
    7. 3. The OpenCms Workplace
      1. What is the OpenCms Workplace?
      2. Logging In
        1. If your Display is Not Big Enough...
      3. The Toolbar
      4. The Preferences Panel
        1. The Workplace Tab
          1. The Startup Settings Section
          2. The General Options Section
        2. The Explorer Tab
          1. The General Options Section
          2. The Display Options Section
        3. The Dialogs Tab
          1. The Default Settings Section
          2. The Permission Dialog Section
        4. The Editors Tab
          1. The General Options Section
          2. The Preferred Editors Section
        5. The Workflow Tab
          1. The General Options Section
          2. The Defaults for New Tasks Section
        6. The User Data Tab
      5. The Explorer View
        1. The Button Bar
        2. The Virtual File System
          1. The File Detail Display
          2. Exploring the VFS
          3. The Root Folder
          4. The Channels Folder
          5. The Sites Folder
          6. The System Folder
      6. Creating and Editing Content
        1. Creating a File
          1. File Types
        2. Creating a Folder
          1. Setting the Folder’s Properties
        3. Creating a Page
          1. Setting the Page’s Properties
        4. Editing a File
          1. The WYSIWYG Editors
            1. The Microsoft DHTML Editor
            2. FCKEditor
            3. The HTMLArea Editor
          2. Starting the Editor from a Page
          3. The Sourcecode Editor
          4. The Controlcode Editor
      7. Publishing Your Changes
        1. Which Method of Publishing Should be Used?
        2. Versioning
      8. Galleries
        1. Image and Download Galleries
        2. Uploading a Gallery
        3. Using a Gallery
      9. Summary
    8. 4. OpenCms Administration
      1. The Administration View
      2. Project Management
        1. Creating a New Project
        2. Project Settings
        3. Project History
        4. The Project List
      3. Accounts
        1. Users, Webusers, and Groups
        2. User Management
        3. Group Management
        4. Webuser Management
      4. Database Management
        1. Exporting from the Database
        2. Importing a File from the Server
        3. Importing a File with HTTP
        4. Extended HTML Imports
        5. Static Exports
      5. Modules
        1. Obtaining Official OpenCms Modules
        2. The First Edit Module Screen
        3. The Second Edit Module Screen
        4. The Module Resources Screen
        5. The Module Parameters Screen
        6. The Module Exportpoints Screen
        7. The Module Dependencies Screen
        8. The Export Module Screen
        9. Deleting a Module
        10. Creating a Module
      6. File History
        1. The History Settings
        2. Clearing the History
      7. Link Validation
        1. Internal Link Validation
        2. External Link Validation
      8. Managing Galleries
      9. Searches and Indexes
        1. Creating an Index
        2. Index Sources
        3. Managing Search Indexes
      10. Scheduled Jobs
      11. Flex Cache Administration
      12. Content Tools
        1. Changing Property Values
        2. Deleting Property Definitions
        3. Renaming Elements
        4. Merging Pages
      13. Workplace Tools
        1. Setting the Login Message
        2. Re-Initializing the Workplace
        3. Synchronization
        4. Notification Messages
        5. Sending Emails to All Users
        6. Sending Notification Messages to All Users
        7. The OpenCms Log File
      14. Summary
    9. 5. Workflow
      1. What is Workflow?
        1. How Workflow Works
      2. The Workflow View
      3. Creating a New Task
        1. Notification
      4. Viewing the Task
        1. Recycling
      5. Workflow Management Strategies
        1. Use Projects to Manage Content Areas
        2. Use Group Hierarchies for Inherited Permissions
        3. Tracking Workflow with Tasks
        4. Keeping a Trail
      6. Summary
    10. 6. Customizing the Site
      1. Templates
      2. JSP Tags
      3. JSP Scriptlets
      4. Working with Templates
        1. Template Module
        2. Creating a New Template
        3. The JSP Template
        4. Testing the New Template
        5. Using Resources in a Template
        6. Making a File Editable
        7. External Elements
      5. A Short Scriptlet
      6. Including the Scriptlet in the Template
      7. More on JSP Tags
        1. JSP Directives
          1. New XML Syntax for Core JSP Tags
        2. The OpenCms Tag Library
          1. Breaking a JSP Template into Sections
          2. Using Templates from a JSP Document
          3. The property Tag
          4. The link Tag
          5. The user Tag
          6. The info Tag
          7. The img Tag
          8. The decorate Tag
            1. Decorator Configuration Files
            2. Using the decorate Tag
      8. Documentation and TemplateOne
      9. A Few Things to Watch Out For
        1. The File System
        2. Redirecting and Forwarding
        3. Dynamic Content and Publishing
        4. Structuring Code and Content
      10. Summary
    11. A. Cron Expressions
      1. What are Cron Expressions?
      2. Changes from OpenCms 5
      3. Cron Expressions in OpenCms 6
      4. Summary
    12. B. Upgrading OpenCms
      1. Getting the Upgrade Package
      2. Preparing for the Upgrade
      3. Moving Files
      4. Running the Upgrade Wizard
      5. Final Steps
      6. Summary