[opencms-dev] Properties template and template-elements

Tim Daschner timd at thedoleco.com
Mon Mar 29 15:33:07 CEST 2010


Ok thanks for the clarification. So, isn't xmlpage itself a type of
structured xmlcontent defined in opencms-modules.XML by some module? If so,
then this usage of template property must come from the template used by
that module. In other words template is not really used by opencms framework
but might be used by a module that alkacon may have written as a part of
their distro.  Did I get it right?

Tim

On Mar 29, 2010 8:25 AM, "Paul-Inge Flakstad" <flakstad at npolar.no> wrote:

 Tim,

Just to clearify: for xmlcontent ("Structured content"), the
"template" property isn't used by OpenCms. But for other resource types,
like xmlpage ("Page with free text"), it is used by OpenCms.

As far as I can tell, the "master template" (the surrounding outer
template) works in a slightly different way when working with xmlpage
files, compared to working with xmlcontent files:
For xmlpage, the master template has some <cms:include element="..."
/> statements that include content from the various element(s) of
the xmlpage.
For xmlcontent, the master template is included from the xmlcontent's
template, defined in the property "template-elements".

In short, xmlpage files need their "template" property set, xmlcontent files
need their "template-elements" property set. If done correctly, you can
use the same master template for both.

Best regards,
Paul

 ------------------------------


> From: opencms-dev-bounces at opencms.org [mailto:
opencms-dev-bounces at opencms.org] On Behalf Of Tim D...
*Sent:* 29. mars 2010 14:59


> To: The OpenCms mailing list
*Subject:* Re: [opencms-dev] Properties template and template-elements

> Thank you folks. Yeah, that's how I have used the template elements
property so far. I was not awa...



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100329/5e096172/attachment.htm>


More information about the opencms-dev mailing list