the way it works you would need to have

templates/screens/app
templates/screens/display

templates/layouts/app
templates/layouts/display

then in templates you would references screens as
$link.setPage("app,Foo.vm")

and screens/app/Foo.vm will use layouts/app/Default.vm for layout unless
(maybe) a layouts/app/Foo.vm existed.

john mcnally

Terry McBride wrote:
> 
> Jason,
> 
> I know that screen/Foo.vm uses layouts/Foo.vm.
> 
> I was hoping that templates/display/screens/Foo.vm
> would use templates/display/layouts/Default.vm (it
> appears to use the same default layout -
> templates/app/layouts/Default.vm - regardless of the
> subdirectory)
> .
> 
> I hoped that their would be a default layout for each
> subdirectory of templates.
> 
> Here is my directory structure
> 
> templates/
>    templates/app/
>         templates/app/layouts
>         templates/app/navigations
>         templates/app/screens
> 
>    templates/display/
>         templates/display/layouts
>               templates/display/layouts/Default.vm
>               templates/display/layouts/Display.vm
>         templates/display/navigations
>         templates/display/screens
>               templates/display/screens/ShowTopic.vm
> 
> Did I miss something?
> 
> Thanks for any help,
> Terry
> 
> --- Jason van Zyl <[EMAIL PROTECTED]> wrote:
> > On 11/21/01 6:06 PM, "Terry McBride"
> > <[EMAIL PROTECTED]> 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:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to