You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Brekke, Jeff" <Je...@qg.com> on 2001/11/22 04:38:41 UTC

RE: Pull Tool Re: Cannot get correct Layout with my Reflect(ing) Screen

 
Ditto ( what Jason stated ). You shouldn't need to set the layout in the
template as you are attempting.  Turbine does find the layout for you.  More
information about your structure may be needed to help further.

-----Original Message-----
From: Jason van Zyl
To: Turbine Users List
Sent: 11/21/01 5:19 PM
Subject: Re: Pull Tool Re: Cannot get correct Layout with my Reflect(ing)
Screen 

On 11/21/01 6:06 PM, "Terry McBride" <tt...@yahoo.com> wrote:

> Thanks Jeff,
> 
> Praise be to Pull Tools =)
> 
> .
> .
> .
> 
> I thought I was being clever to add another directory
> parallel to templates/app (templates/display).  I
> wanted turbine to find the screen in display/screens
> (after adding this to path in TRprops) and use
> display/layouts/Default.vm so I wouldn't have to have
> a crapload of layouts, but it didn't behave that way.

It does work, show us a tree of your directory structure and I can
probably
point out what's wrong. Layout templates in a parallel directory will be
found and  used. With the TDK sample app with no modifications to the
TRP
with this setup:

templates/app
  screens/
    Foo.vm
  layouts/
    Foo.vm

Will result in the Foo.vm layout being used with the Foo.vm template
screen.
 
> So, I'm putting
> $data.setLayoutTemplate("/DisplayDefault.vm") in my
> screens in that dir (unless I need a specific layout).
> 
> Any comments?

Turbine's searching mechanism works, you don't need to diddle your
templates
for particular layouts.
 


-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>