Website/CollabNet Template Files

From Apache OpenOffice Wiki
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This page seeks to document the lists the CollabNet template files in look/www/overrides/templates and what they do, as well as providing tips for those who are working on the templates.

Structural Overview

  • PreServlet.vm
    • HeadTest.vm
    • NewBanner.vm
      • Locale.vm
    • NavColumn.vm
  • HTML - Actual Page Content
  • PostServlet.vm
    • FooterTest.vm

PreServlet.vm

HeadTest.vm

NewBanner.vm

Locale.vm

NavColumn.vm

HTML (Actual Page Content)

PostServlet.vm

FooterTest.vm

CollabNet Scripting

CollabNet has its own scripting language, which works only within .vm files within look/www/overrides/templates. It cannot be accessed through

Variables

#set ($myVar = "Variable")

The new variable can be now called from anywhere within a .vm file (except, of course, all the code above the variable declaration). You do not need to have it on a new line or precede it with "#"; i.e., the code below will work fine:

<p>$myVar</p>

The resulting HTML output will be:

<p>Variable</p>
Personal tools