[opencms-dev] What to include in element field for extended html import ?

pat sad hlp.psaad at gmail.com
Mon Aug 29 21:48:04 CEST 2005


I created a module to be used as a template and now I am trying to
import it using extended html import. I'm getting an error when i do
so, stating that the element 'body' is not for template
system/modules/com.csssite.www/templates/csshead"

I know I have to write an element there but what is that element that
I have to write ?

Here is what I have in my template:
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><cms:property name="Title" escapeHtml="true" /></title>
<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;
CHARSET=<cms:property name="content-encoding" default="ISO-8859-1"
/>">
<link type= "text/css" href="<cms:link>../resources/sheet.css</cms:link>"> 
</head> 

<body><h2>My first template head</h2><!-- Main pagebody starts here
--><cms:include element= "body"/>
<!--Main pagebody ends here --><h2>My first template foot</h2>
</body>
</html>



More information about the opencms-dev mailing list