on 1/10/2001 12:28 PM, "William Lee" <[EMAIL PROTECTED]> wrote:

> What I would like to do is, depending on the language code, direct the
> template to load from a different directory.  For example,  if I have
> one screen "Sample".  I would like to put the templates in:
> 
> /en/Sample.vm
> /es/Sample.vm
> /cn/Sample.vm, etc...
> 
> Therefore, when the URL points to /template/Sample.vm, I would like to
> determine from the parameter request the template to load is actually
> /(language code)/Sample.vm.
> 
> I know I can set the template in the screens/Sample.java.  However, I
> don't want to do this for each screen since it'll be tedious.
> 
> Any hint on how I can accomplish this?

Two ways:

#1. Create a more intelligent Velocity template system within Turbine that
handles what you want.
#2. In Velocity you can create another template loader that does what you
want.

These are both things that we (Jason and I and others) have been pondering
doing for a while now, but just haven't gotten to yet. I'm sure that we
would all love it if you scratched this itch for us. :-)

thanks,

-jon

-- 
Honk if you love peace and quiet.



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to