Templating

RELATED CONTENT

Templating Overview

The Templating Overview section includes overview topics, reference, and examples for the components used within OU Campus. This includes code reference tables, and template examples and breakdowns. Code reference topics include a brief description of the element, the proper syntax, attribute reference and usage, acceptable values for attributes, and realistic examples.

The components used for OU Campus include TCFs and TMPLs, and an explanation of how they work together to manufacture a PCF and utilize XSLs to create page products. The PCF can also be utilized during the templating process to reverse engineer a template set. XSLs, while technically not required, are employed in the process of transforming the page. Legacy implementations have used HTML files and templates on the staging server without the use of PCF/XML and XSL. This type of web site is supported by OU Campus, but no longer used in new implementations.

The focus of this section is providing reference material for the templating components rather than scripting techniques used with XSLs. The XML/XSL provides some basic overview and legacy information and the Advanced XSL section provides more in depth code reference focussed on contemporary use XML and XSL.

Templates are very flexible in terms of what type of content they can produce. This section, by default, discusses creating a page or PCF, but templates can be used to create:

  • Several pages at one time
  • A directory with a page
  • An RSS article (a page with an RSS feed and feed item attached automatically)
  • Other types of content, such as an include file (.inc)
  • And templates can even be used to create other templates