<!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=400323116-27032010><FONT face=Arial
color=#0000ff size=2>Hi Tim,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2>I went ahead and started a new subject, since my reply
became quite lengthy. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010></SPAN><SPAN
class=400323116-27032010><FONT face=Arial color=#0000ff size=2>I'm also
confused about this. Understanding how these two properties work, or should
work, has never been made completely clear to me. </FONT></SPAN><SPAN
class=400323116-27032010><FONT face=Arial color=#0000ff size=2>Until I gain a
better understanding, I've landed on the following:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2>"template" is where I put the path to what I like to
refer to as the "master template". The master template contains the
<html><head>...</head> code and other common stuff,
such as the header, navigation, language swappers, searchbox, footer and so
on. I often split the master template into two elements, an upper and a lower
element, using <cms:template element="...">.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2>"template-elements" is where I put the path to the
template for the specific xmlcontent file. (For xmlcontent
resources, OpenCms will look at this property for a path to
a template. The property "template" is not used by OpenCms for
xmlcontent.) This template's job is to generate the output of the
xmlcontent file. But that's not the all it does. To make the template
and the master template play well together, the first
thing it does is include the upper part of the master template. Then
it generates the output of the xmlcontent file. Finally, it includes the lower
element of the master template. The path to the master template is of course
read from the property.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2>As far as I can tell, this is similar to the way
things work when you use resource types like the xmlpage ("Page with
free text"), at least in terms of the end result - the specific mechanisms
involved are quite different, I believe.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2>In addition to what I've explained above, I've also added
more properties to allow dynamic inclusion of CSS, javascript and
text snippets for the HTML <head> section. <SPAN
class=400323116-27032010><FONT face=Arial color=#0000ff size=2>I'm not sure if
this is the "correct" way to do things, but it certainly works very well on our
sites, where nearly all files are structured
content.</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2><SPAN
class=400323116-27032010></SPAN></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2><SPAN class=400323116-27032010>Would appreciate to hear
more thoughts on this subject.</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2><SPAN
class=400323116-27032010></SPAN></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2><SPAN class=400323116-27032010>Best
regards,</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=400323116-27032010><FONT face=Arial
color=#0000ff size=2><SPAN
class=400323116-27032010>Paul</SPAN></FONT></SPAN></DIV><BR>
<BLOCKQUOTE
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> 27. mars 2010 16:34<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> Re: [opencms-dev] Template property wiped when using
Internet Explorer<BR></FONT><BR></DIV>
<DIV></DIV>Gentlemen,<BR><BR>This is a slight aside from the main topic. I
have always been confused between the property template and template-elements.
I have tried reading documentation and also have referred the Liliedahl book
on opencms 7, but somehow I am still confused. So, when does one use the
template property and when does one use the template-element property? For
now, all my templates are configured on the template-elements of my xmlcontent
files, so I wonder what is the template property
for?<BR><BR>Thanks!<BR>Tim</BLOCKQUOTE></BODY></HTML>