Using existing Template Two

(Difference between revisions)
Jump to: navigation, search
(Easy example:)
(Assumption:)
Line 3: Line 3:
 
To use the template '''Template Two''' the module '''org.opencms.frontend.templatetwo''' has to be installed.
 
To use the template '''Template Two''' the module '''org.opencms.frontend.templatetwo''' has to be installed.
  
 +
There are following Template Two resource types:
  
 +
*Template Two Article
 +
*Template Two News
 +
*Template Two Item
 +
*Template Two Event
 +
*Template Two Style
 +
*Template Two Search Page
 +
*Template Two Options
 +
*Template Two Preset
 +
*Template Two Linkbox
 +
*Template Two Configuration
 +
*Template Two Textbox
 +
*Template Two Listbox
  
 
== '''Hello World''' example: ==
 
== '''Hello World''' example: ==

Revision as of 17:31, 28 October 2009

Assumption:

To use the template Template Two the module org.opencms.frontend.templatetwo has to be installed.

There are following Template Two resource types:

  • Template Two Article
  • Template Two News
  • Template Two Item
  • Template Two Event
  • Template Two Style
  • Template Two Search Page
  • Template Two Options
  • Template Two Preset
  • Template Two Linkbox
  • Template Two Configuration
  • Template Two Textbox
  • Template Two Listbox

Hello World 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:
 <%@ page session="false" %>
 <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
 <cms:include property="template" element="head" />
 Hello World
 <cms:include property="template" element="foot" />
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox