Classes for the OpenCms 6 'layoutpage' resource type module.
The provided classes are used to generate a frontend layout page that provides an easy to use form based page layout for page editors.
The XML content type 'layoutpage' configures the frontend appearance of text paragraphs together with images.
To modify the enclosing output HTML code, please edit the files in the layouts/ subfolder of the module.
The used macros were developed using the FreeMarker template engine.
You can use the following variables in the files:
${headline} : the optional headline of the paragraph
${image} : the image tag for the paragraph
${description} : the image description text
${text} : the text of the paragraph
To add your own predefined layout pattern, do the following:
- Create a text file in the module subfolder
layouts/
- You can use the following variables in the text file: ${headline}, ${image}, ${description}, ${text}
- Use the method
addLayoutPattern to make your layout file available in the bean with the desired image width as second argument (large, medium or small)
- Edit the schema appinfo node in
schemas/layoutimage.xsd to add your layout to the alignment selector widget
- Eventually enhance the CSS style sheet
resources/style.css and include it in your template
@version $Revision: 1.5 $
@since 6.1.9
|