Using existing Template Two

(Difference between revisions)
Jump to: navigation, search
(A Hello World example:)
(Template Two resource types)
Line 41: Line 41:
 
== Template Two resource types ==
 
== Template Two resource types ==
  
 +
In this chapter the Template Two resource types are described.
  
Template Two Article
+
 
*Template Two News
+
 
*Template Two Item
+
== Template Two News ==
*Template Two Event
+
 
*Template Two Style
+
 
*Template Two Search Page
+
 
*Template Two Options
+
== Template Two Item ==
*Template Two Preset
+
 
*Template Two Linkbox
+
 
*Template Two Configuration
+
== Template Two Event ==
*Template Two Textbox
+
 
*Template Two Listbox
+
 
 +
 
 +
== 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 ==

Revision as of 17:45, 28 October 2009

Contents

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

These resource types are to create in the OpenCms Explorer View with the New button and the choose from Template Two. In the following the handling of these resource types is described.


A Hello World example:

To see the default layout from Template Two, in this chapter a Hello World example, using the Template Two, is created. To create a Hello World Page using the Template Two, following is to do:

  • Create a Jsp with this content:
 <%@ 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" />
  • Set the template property to /system/modules/org.opencms.frontend.templatetwo/templates/main.jsp



Template Two resource types

In this chapter the Template Two resource types are described.


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

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox