<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2>Tim,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2>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.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2>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:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2>For xmlpage, the master template has some <cms:include
element="..." /> statements that include content from the
various element(s) of the xmlpage.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2>For xmlcontent, the master template is included from
the xmlcontent's template, defined in the property
"template-elements".</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2>Best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=718080213-29032010><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Tim
Daschner<BR><B>Sent:</B> 29. mars 2010 14:59<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> Re: [opencms-dev] Properties template and
template-elements<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Thank you folks. Yeah, that's how I have used the template elements
property so far. I was not aware when and why is the template property used in
com's code so I never used it. From this discussion it sounds like the
temmplate property is not used at all... so I plan to start using it!</P>
<P>Thanks for opening a new thread!</P>
<P>Tim</P>
<P>
<BLOCKQUOTE type="cite">On Mar 27, 2010 10:46 PM, "Mathias Lin" <<A
href="mailto:mail@mathiaslin.com">mail@mathiaslin.com</A>>
wrote:<BR><BR><BR>I have a similar understand about template and
template-elements as Paul. For<BR>small sites though I sometimes only use
template-elements and no template,<BR>if not necessary.<BR><BR>Using
template property is good if you need to support different<BR>theming/layout
of the master template (surrounding outer template) and it<BR>cannot solely
be done with different css, while the content section<BR>basically remains
the same.<BR><BR>@Tim: better to open a new thread with new subject line
than capturing an<BR>existing one if the question is different (even if the
topics are related).<BR><BR>Regards,<BR>Mathias<BR>
<P><FONT color=#500050><BR><BR>Paul-Inge Flakstad wrote:<BR>> <BR>> Hi
Tim,<BR>> <BR>> I went ahead and started a new subject, since my
reply...</FONT></P>-----<BR>Mathias Lin<BR>Skype: mathias.lin<BR><A
href="http://www.mathiaslin.com"
target=_blank>http://www.mathiaslin.com</A><BR>--<BR>View this message in
context: <A
href="http://old.nabble.com/Template-property-wiped-when-using-Internet-Explorer-tp28030033p28057057.html"
target=_blank>http://old.nabble.com/Template-property-wiped-when-using-Internet-Explorer-tp28030033p28057057.html</A><BR>Sent
from the OpenCMS - Dev mailing list archive at
Nabble.com.<BR><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To change your list
options, or to unsubscribe from the list, please visit<BR><A
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></BLOCKQUOTE>
<P></P></BLOCKQUOTE></BODY></HTML>