[opencms-dev] Html Import 6.0 beta 3
prashant
prashant.uppal at tavant.com
Wed May 18 21:41:27 CEST 2005
Hi
I'm using Corrin beta 3 & I'm trying to import some html pages from my file system & i do select a template created by myself. I do properly include the body element in the <cms:include> as well <cms:templates> tags.
but I'm getting the error message
Element 'body' is not a valid element of template: /system/modules/com.MyModule.templates/templates/main
here main is my template
& looks like
************************************************************
## main.jsp##
<%@ page session="true" %>
<%@ 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" />">
<script language="JavaScript" src="../js/swapimages.js" type="text/JavaScript"></script>
<SCRIPT LANGUAGE="JavaScript" src="../js/openwindow.js" type="text/JavaScript"></script>
<link type="text/css" rel="stylesheet" href="../css/home.css">
</head>
<body>
<cms:include file="header"/>
<cms:template element="body">
<cms:include element="body"/>
</cms:template>
<cms:include file="footer"/>
</body>
</html>
*************************************************************
but when I'm selecting Welcome release notes tepmlate every thing works perfecly fine.
The error is repeated when I select OpenCms template 1 or any other template.
:roll:
please suggest what will be the problem.
thanks
prashant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050518/049e53d1/attachment.htm>
More information about the opencms-dev
mailing list