Using existing Template Two
(Difference between revisions)
(New page: == Assumption: == To use the template '''Template Two''' the module '''org.opencms.frontend.templatetwo''' has to be installed. == Easy example: == To create a '''Hello World''' Page...) |
(→Easy example:) |
||
Line 1: | Line 1: | ||
− | |||
== Assumption: == | == Assumption: == | ||
Line 14: | Line 13: | ||
- Content from the Jsp: | - Content from the Jsp: | ||
− | <%@ page session="false" %> | + | [[Image:<%@ page session="false" %> |
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %> | <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %> | ||
<cms:include property="template" element="head" /> | <cms:include property="template" element="head" /> | ||
Line 20: | Line 19: | ||
<h1>Hallo</h1> | <h1>Hallo</h1> | ||
− | <cms:include property="template" element="foot" /> | + | <cms:include property="template" element="foot" />]] |
Revision as of 16:35, 28 October 2009
Assumption:
To use the template Template Two the module org.opencms.frontend.templatetwo has to be installed.
Easy example:
To create a Hello World Page using the Template Two, following is to do:
- Create a Jsp - Set the template property to /system/modules/org.opencms.frontend.templatetwo/templates/main.jsp - Content from the Jsp:
[[Image:<%@ page session="false" %> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %> <cms:include property="template" element="head" />
Hallo
<cms:include property="template" element="foot" />]]