On Thu, 15 Feb 2001, Ethan Adams wrote:
> I'm not sure if my title fits this question but here it goes...
>
> I want to be able to access a variable, let's say $appVersion, from all my screens
>and layouts without having to explicity set it in all my screen classes.
>
> I figured I could put it in a properties file...Now how would I get access to it in
>my *.vm files? Do extend the VelocityScreen class and add it there?
>
> I am new to Turbine and want to make sure I doing things the most efficient way.
Use the TurbinePullService with your velocity templates. There
is an example pull model tool in org/apache/turbine/services/pull/util
call UIManager, you can use that as a model.
There is also an example of how to make your new tool available
via the standard TR.props file. The UI manager is actually a good
example because it uses a properties file for skin values so you
could copy that as a start to make a set of properties available
to your application.
jvz.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]