Creating Plug & Play Modules for OpenCms 8

Track: Workshop
Speaker: Rüdiger Kurz (Alkacon Software GmbH)

Abstract

OpenCms, since its first public version, features a module mechanism that allows encapsulating functionalities in separate modules. However, the template mechanism of OpenCms up to version 7.5 left many details to the developer. It turned out that developing reusable modules is quite difficult, since there used to be many dependencies from a module to the template it was developed for. The improved template and module mechanism of OpenCms 8 addresses these issues, removes theses dependencies and therefore allows creating modules that are not depended on the template.

Rüdigers presentation did include an overview of the problem with pre-OpenCms 8 modules using the “Template 2” example from the OpenCms 7.x distribution. He did then show how the problems have been addressed in OpenCms 8. Among other things, this includes the possibility to create HTML output that is rendered differently depending on the space available in the template.

Best practices for structuring modules were also explained, for example how to layout module resources in different folders and naming conventions we suggest.

Latest News

  • OpenCms 11.0.1 available

    Sep 4, 2019 - OpenCms 11.0.1 is a maintenance release for OpenCms 11. This version fixes a number of issues that have been detected in OpenCms 11. Also included are some new features and security enhancements.

  • OpenCms 11.0.1 Release Notes

    Sep 4, 2019 - The OpenCms 11.0.1 release notes contain detailed information about the new features and fixes in this version.

  • OpenCms 11 available

    Apr 30, 2019 - OpenCms 11 brings a major update for the workplace. All workplace apps have been replaced with modernized versions. OpenCms 11 also features improvements for template generation, in the editors and for remote management. Moreover, this release is compatible with Java 11 and comes with the new "Mercury" default template.

  • OpenCms 11 Release Notes

    Apr 30, 2019 - The OpenCms 11 release notes contain detailed information about the new features and fixes in this version.

Try the OpenCms Live Demo