|
Subject: The element "body" is not for template "xx" Newsgroups: gmane.comp.cms.opencms.devel Date: 2008-07-29 15:25:59 GMT (3 weeks, 16 hours and 58 minutes ago)
Hi list, It seems I'm not the first to ask, but I'd like someone in the list to be the first to answer http://www.opencms-forum.de/opencms-forum/viewthread;jsessionid=850A87B21AE682373B27EAB41F694A69?thread=1072
I created a simple template jsp file and am trying to import html files with the extended html import as suggested here. However I can't manage to have it work, keep getting this error : The element "body" is not for template "xx". Importing the same files with default template (template two) works. Creating a new "file with free text" based on my template also works. My template is very simple, here's how it looks like (I tried with and without the <cms:include element="body" editable="true"/> but that didn't change a thing). Thanks for your help!! Olivier <% <at> page session="false" %>
<cms:template element="head"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;
<body> <!-- Main page body starts here -->
<div class="container"> <div class="header"><div class="logo"></div></div> <div class="main">
<cms:include element="body" editable="true"/> </cms:template>
</div> <cms:template element="foot">
</body>
Olivier CHIROUZE 402 avenue Charles de Gaulle ( phone: +33 (0)4.72.96.89.39 _______________________________________________ This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit http://lists.opencms.org/mailman/listinfo/opencms-dev |
|
|