Difference between revisions of "Website/CollabNet Template Files"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Categorizing)
 
Line 49: Line 49:
 
<p>Variable</p>
 
<p>Variable</p>
 
</source>
 
</source>
 +
 +
[[Category:Website]]

Latest revision as of 19:15, 16 March 2010

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