<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>Check if a body is used in a page</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Using OpenCms 6.0 alpha I have created a default body:</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier"><?xml version="1.0" encoding="UTF-8"?></FONT>
<BR><FONT SIZE=2 FACE="Courier"><pages xmlns:xsi="<A HREF="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>" xsi:noNamespaceSchemaLocation="<A HREF="http://www.opencms.org/dtd/6.0/xmlpage.xsd">http://www.opencms.org/dtd/6.0/xmlpage.xsd</A>"></FONT></P>
<P><FONT SIZE=2 FACE="Courier"> <page language="en"></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <element name="acontent-item"></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <links/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <content/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> </element></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <element name="pre-menu-text"></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <links/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <content/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> </element></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <element name="post-menu-text"></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <links/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <content/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> </element></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <element name="back-link1"></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <links/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <content/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> </element></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <element name="back-link2"></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <links/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <content/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> </element></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <element name="footer"></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <links/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> <content/></FONT>
<BR><FONT SIZE=2 FACE="Courier"> </element></FONT>
<BR><FONT SIZE=2 FACE="Courier"> </page></FONT>
<BR><FONT SIZE=2 FACE="Courier"></pages></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">In my template I then have the following:</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier"><cms:template element="back-link2"></FONT>
<BR> <FONT SIZE=2 FACE="Courier"><p><cms:include element="back-link2"></p></FONT>
<BR><FONT SIZE=2 FACE="Courier"></cms:template></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">What I want to achieve is that the <p>-tags are only in my page when the back-link2 element is actually used. However, even when I do not fill the back-link2 element in the page based on this template, I always get the <p>-tags. My assumption is that the</FONT> <FONT SIZE=2 FACE="Courier"><cms:template element="back-link2"></FONT><FONT SIZE=2 FACE="Arial"> is some kind of test to see if the element is actually used in the page based on the template. However, this does not seem to be the case. Is there some way of checking if an element is actually used in the page?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Hope you can help, </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Regards</FONT>
<BR><FONT SIZE=2 FACE="Arial">Ronald</FONT>
</P>
<P><B><FONT COLOR="#666666" FACE="Garamond">AtoBe Mobile Solutions</FONT></B>
<BR><FONT COLOR="#666666" FACE="Garamond">Ronald Lips</FONT>
</P>
<P><FONT COLOR="#666666" FACE="Garamond">tel: +31 (0)23 750 21 19</FONT>
<BR><FONT COLOR="#666666" FACE="Garamond">fax: +31 (0)23 750 21 11</FONT>
<BR><FONT COLOR="#666666" FACE="Garamond">mob: +31 (0)651 18 35 70</FONT>
<BR><FONT COLOR="#666666" FACE="Garamond">mail: r<U>onald.lips@atobemobile.com</U></FONT>
<BR><FONT COLOR="#666666" FACE="Garamond">web: </FONT> <A HREF="file://www.atobemobile.com"><U></U><U><FONT COLOR="#0000FF" FACE="Garamond">www.atobemobile.com</FONT></U></A>
</P>
<BR>
</BODY>
</HTML>