XMLPage
From OpenCms Wiki
XMLPages (Page with free text) is a standard content type that is shipped with OpenCms. Similar to XMLContent it is based on XML but should not be confused with it.
Adding a custom body
XMLPages can consist of several elements, that can be edited seperately. You add a custom body that can automatically be used when creating a new file. Create a plain file in a folder called default_bodies in your module. This file can contain the default information (elements and locales) for your XMLPages. An example might look like this:
<?xml version="1.0" encoding="UTF-8"?> <pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd"> <page language="de"> <element name="bodyedit"> <links/> <content/> </element> </page> <page language="en"> <element name="bodyedit"> <links/> <content/> </element> </page> </pages>
On your template add the name of the elements to the property template-elements.