On Thu, 20 Dec 2012 13:56:28 -0200, ZKN __ <[email protected]> wrote:
Hi Thiago,
Hi!
I've tried moving the base page to the "pages" package but that didn't
work again.
Please define 'didn't work'.
I'm not sure what you mean with block parameters but if it means using
some kind of IF statements in the base template I don't think that's a
good solution.
It wouldn't be, but block parameters don't involve if statements at all.
It's about using the Delegate component inside your Layout to render a
Block which is passed as a parameter to Layout. Something like this (not
tested):
Layout.java:
@Parameter @Property
private Block something;
Layout.tml:
...
<t:delegate to="something"/>
In any page using the layout:
<t:layout ...>
<p:something>some stuff ... </p:something>
</t:layout>
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]