<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I am reading all the documentation I can find, but I am not able to
migrate my template. As a first step, I am trying to create a new
and very simple OpenCMS 10 template following <br>
<br>
<a class="moz-txt-link-freetext" href="http://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/">http://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/</a><br>
<br>
I am lost at step 9.<br>
<br>
I now have a very simple container page template:<br>
<br>
<span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"><%</span><span class="hljs-annotation" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);">@page</span><sp
an style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"> buffer=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);">"none"</span><span style
="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"> session=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);">"false"</span><span style="colo
r: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"> trimDirectiveWhitespaces=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);">"true"</span><span s
tyle="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"> %>
<%@ taglib prefix=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);">"cms"</span><span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 24
5);"> uri=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);"><a class="moz-txt-link-rfc2396E" href="http://www.opencms.org/taglib/cms">"http://www.opencms.org/taglib/cms"</a></span><span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-tex
t-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"> %>
<%@ taglib prefix=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);">"fmt"</span><span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 24
5);"> uri=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);"><a class="moz-txt-link-rfc2396E" href="http://java.sun.com/jsp/jstl/fmt">"http://java.sun.com/jsp/jstl/fmt"</a></span><span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-
stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"> %>
<%@ taglib prefix=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);">"fn"</span><span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245
);"> uri=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);"><a class="moz-txt-link-rfc2396E" href="http://java.sun.com/jsp/jstl/functions">"http://java.sun.com/jsp/jstl/functions"</a></span><span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -w
ebkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"> %>
<%@ taglib prefix=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);">"c"</span><span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245)
;"> uri=</span><span class="hljs-string" style="box-sizing: border-box; border-radius: 0px; color: rgb(33, 151, 219); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);"><a class="moz-txt-link-rfc2396E" href="http://java.sun.com/jsp/jstl/core">"http://java.sun.com/jsp/jstl/core"</a></span><span style="color: rgb(20, 67, 130); font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.5714px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 1; word-spacing: 0px; -webkit-text-
stroke-width: 0px; display: inline !important; float: none; background-color: rgb(245, 245, 245);"> %></span><br>
<html><br>
<head><br>
<title>Test</title><br>
<cms:enable-ade /><br>
</head><br>
<body><br>
<div id="HEADER">header</div><br>
<div id="NAVIGATION">navigation</div><br>
<cms:container name="CENTERCOLUMN" type="center"
width="100" /><br>
<div id="FOOTER">footer</div><br>
</body><br>
</html><br>
<br>
The root folder of my test site has a "template" property pointing
to that container page template.<br>
<br>
<br>
For the first test, I want to use a very simple custom content type
with the following schema:<br>
<br>
<xsd:schema xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
elementFormDefault="qualified"><br>
<br>
<xsd:include
schemaLocation="opencms://opencms-xmlcontent.xsd"/> <br>
<xsd:element name="SimplePageTypes"
type="OpenCmsSimplePageTypes"/><br>
<br>
<xsd:complexType name="OpenCmsSimplePageTypes"><br>
<xsd:sequence><br>
<xsd:element name="SimplePageType"
type="OpenCmsSimplePageType" minOccurs="0"
maxOccurs="unbounded"/><br>
</xsd:sequence><br>
</xsd:complexType><br>
<br>
<xsd:complexType name="OpenCmsSimplePageType"><br>
<xsd:sequence><br>
<xsd:element name="Menu" type="OpenCmsString"
minOccurs="0" maxOccurs="1" /><br>
<xsd:element name="Author" type="OpenCmsString" />
<br>
<xsd:element name="Release" type="OpenCmsDateTime"
/><br>
</xsd:sequence><br>
<xsd:attribute name="language" type="OpenCmsLocale"
use="optional" /><br>
</xsd:complexType><br>
<br>
<xsd:annotation><br>
<xsd:appinfo><br>
<mappings><br>
<mapping element="Release"
mapto="attribute:datereleased" /><br>
<mapping element="Menu" mapto="property:NavText"
/><br>
</mappings><br>
<defaults><br>
<default element="Author"
value="${currentuser.firstname} ${currentuser.lastname}"/><br>
<default element="Release"
value="${currenttime}"/><br>
</defaults><br>
<formatters><br>
<formatter minwidth="100"
uri="/system/modules/mymodule/formatters/container-formatter.jsp"/><br>
</formatters><br>
</xsd:appinfo><br>
</xsd:annotation><br>
<br>
</xsd:schema><br>
<br>
The formatter is also very simple and looks as follows:<br>
<br>
<%@ taglib prefix="cms" uri=<a class="moz-txt-link-freetext" href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>"
%><br>
<cms:formatter var="content"><br>
<div class="article"><br>
<h1>${content.value.Menu}</h1><br>
</div><br>
</cms:formatter> <br>
<br>
<br>
<br>
And now what? I can create a new container page, but do not see how
to link it to my XSD /Resource-Type. It is not showing any
"containers" or anything to enter content.<br>
<br>
Any ideas?<br>
<br>
Thanks<br>
John<br>
<br>
</body>
</html>