Difference between revisions of "Website/CollabNet Template Files"
From Apache OpenOffice Wiki
(New page: This page lists the CollabNet template files in <tt>look/www/overrides/templates</tt> and what they do. == Structural Overview == * PreServlet.vm ** HeadTest.vm ** NewBanner.vm *** Local...) |
|||
Line 1: | Line 1: | ||
− | This page lists the CollabNet template files in <tt>look/www/overrides/templates</tt> and what they do. | + | This page seeks to document the lists the CollabNet template files in <tt>look/www/overrides/templates</tt> and what they do, as well as providing tips for those who are working on the templates. |
== Structural Overview == | == Structural Overview == | ||
Line 11: | Line 11: | ||
* PostServlet.vm | * PostServlet.vm | ||
** FooterTest.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 <tt>.vm</tt> files within <tt>look/www/overrides/templates</tt>. It cannot be accessed through | ||
+ | |||
+ | === Variables === | ||
+ | |||
+ | <source lang="xml"> | ||
+ | #set ($myVar = "Variable") | ||
+ | </source> | ||
+ | |||
+ | 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: | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <p>$myVar</p> | ||
+ | </source> | ||
+ | |||
+ | The resulting HTML output will be: | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <p>Variable</p> | ||
+ | </source> |
Revision as of 20:08, 21 December 2008
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.
Contents
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
HTML (Actual Page Content)
PostServlet.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>