Creating opencms 8 container templates
This blog post aims to help you understand that new concept. I want to give you two examples, one for version 7 and one for version 8. These should make the life of content editors easier but developing got more complex, naturally.
I assume you are familiar with the general OpenCms terms, such as module, system-folder, site, template, workplace, structured content and you already know how to set up an initial instance of OpenCms.
Sure, a template could include more elements and rely on multiple structured contents, but that is not a necessity. In OpenCms 8 editors should work with the sitemap editor and simply drag and drop a new page into an existing site.
Technically the drag and drop process copies an existing resource the model page to the destination the index. Model pages are based on container page templates that reside in the module just like the old templates used to. Containers are elements that can be added to a page with the new drag and drop page editing of OpenCms 8. Containers are structured contents, so you need an XSD that defines the structured content and add module config that enlists all available resource types.
Finally the XSD defines a set of formatters. Should contain elements JSPs included by the template main. Should contain formatters JSPs for content and their configuration files, e. Should contain static resources referenced by the template, e. CSS-files, JavaScript-files, images, etc.
Should contain content type definitions XSDs , that describe the structure of content types, e. If the HTML prototype is zipped and you have named the just created module my. With a click on the main. Open the main. Then search for all referenced resources CSS, Javascript, images and change the referenced links by replacing the href and the src attribute values according to the following examples in order to keep internal links intact:.
Somewhere in the prototype there might be a section for the main content. In order to validate that everything works fine so far, click on the index. If the model page has been configured correctly, open the sitemap and start creating a navigation structure.
For more information about using the sitemap, please read about the sitemap editor. This step is most likely dependent on the HTML prototype and can only be described as general example. Publish : This icon opens the publish dialog. Clipboard : Opens the clipboard, where a content editor can access favorites and recently changed files. Context : Opens the website's context menu.
Sitemap : Opens the Sitemap Editor. Reset : Undo your changes on a container page and return to the latest saved version. The following section explains all Controls in detail. The order of the described controls differs. To the fast access Right column.
OpenCms 12 Release Notes Oct 12, - The OpenCms 12 release notes contain detailed information about the new features and fixes in this version.
0コメント