How to Create New Types in OpenCMS

The OpenCMS content management system offers a variety of “types” to help you manage your data. These are templates for organizing and displaying certain kinds of information. If you have information that does not fit well in any of the default types, you can create a new type. After you write the Java code (like any OpenCMS customization, you need to know Java), you can create the new type easily.

Instructions

    • 1

      Write, or access (if you're using pre-written code), the Java code for the type you wish to add. There is no template or basic way to create a type. Depending on your data, you can potentially use any Java code to organize it.

    • 2

      Log into OpenCMS.

    • 3

      Click “Real File System.”

    • 4

      Open the file “/WEB-INF/config/opencms-modules.xml”.

    • 5

      Copy and paste the Java code after the line “<modules/>”.

    • 6

      Click “Save” to save the XML file. This will create the new type. When you restart OpenCMS, you will be access it just as you do any other type.

Related Searches:

References

Comments

Related Ads

Featured