You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Stephen Grant <st...@viant.com> on 2001/03/20 14:51:17 UTC

Velocity Question

How can I make "composite" pages within the Turbine/Velocity framework? In
JSP I would use includes. It looks like I can use as many navigation
sections as I need. Can you have more than one $screen_placeholder? Or make
the $screen_placholder a collection of other VelocityScreen objects? Also, a
quick pointer to how you can programmatically adjust the content of the nav
sections based on a request parameter would be really helpful. Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Velocity Question

Posted by Daniel Rall <dl...@collab.net>.
"Stephen  Grant" <st...@viant.com> writes:

> How can I make "composite" pages within the Turbine/Velocity framework? In
> JSP I would use includes. It looks like I can use as many navigation
> sections as I need. Can you have more than one $screen_placeholder? Or make
> the $screen_placholder a collection of other VelocityScreen objects? Also, a
> quick pointer to how you can programmatically adjust the content of the nav
> sections based on a request parameter would be really helpful. Thanks.

What about the Layout classes?

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


not a...Re: Velocity Question

Posted by Jon Stevens <jo...@latchkey.com>.
on 3/20/01 5:51 AM, "Stephen  Grant" <st...@viant.com> wrote:

> How can I make "composite" pages within the Turbine/Velocity framework? In
> JSP I would use includes. It looks like I can use as many navigation
> sections as I need. Can you have more than one $screen_placeholder?

No.

> Or make
> the $screen_placholder a collection of other VelocityScreen objects?

Huh?

> Also, a
> quick pointer to how you can programmatically adjust the content of the nav
> sections based on a request parameter would be really helpful. Thanks.

It sounds like you haven't read:

    <http://jakarta.apache.org/turbine/fsd.html>

So, let me explain:

You have 4 "UI" Modules:

    Page, Screen, Navigation, Layout

Screen is considered the "body" of the content you are trying to deliver.

If you think of the Modules as objects within each other, the Screen and
Navigation is contained in the Layout and the Layout is contained in the
Page.

This is illustrated here:

    <http://jakarta.apache.org/turbine/images/ModuleObjectLayout.gif>

Now, when you combine things with Velocity, you also need to factor in a
directory structure. All of that is described here:

    <http://jakarta.apache.org/turbine/velocity-site.html>

Now, a Navigation module is just like a Screen or Layout module.

If you want to include another navigation template into your page, you just
use the $navigation variable. If you want to include other templates, you
can also use the #parse/#include Velocity directives.

thanks,

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org