Because i allready have a template like this
<definition name=".mainLayout"
path="/tiles/layouts/templates/admin/blackplazza_admin/mainLayout.jsp">
<put name="title" value="" />
<put name="header" value=".header" />
<put name="mainMenu"
value="/tiles/layouts/templates/admin/blackplazza_admin/mainMenu.jsp" />
<put name="toolbar" value="" />
<put name="message" value="" />
<put name="body" value="" />
<put name="footer" value="/tiles/footers/admin/footer.jsp" />
</definition>
.......................................................................................
<definition name=".content" extends=".mainLayout">
<put name="title" value="Äéá÷åßñçóç ¢ñèñùí" />
<put name="toolbar" value=".toolbar.content" />
</definition>
and i want the toolbar definition not to dispayed at .content.before.delete
Antonio Petrelli wrote:
2007/5/21, Jim Theodoridis <[EMAIL PROTECTED]>:
Antonio Petrelli wrote:
> 2007/5/21, Jim Theodoridis <[EMAIL PROTECTED]>:
>>
>> Hello
>>
>> I am having the follwoing definition at tiles-defs.xml
>>
>> <definition name=".content.before.delete" extends=".content">
>> <put name="body" value=".cPanel.content.before.delete" />
>> <put name="message" value=".msg.content.show" />
>> <put name="toolbar" value="{$1}" />
>> </definition>
>>
>> how can i set that "toolbar" definition will be null?
>
>
>
> What is that "{$1}"? I really cannot understand it.
So you want to put a null value as an attribute?
If it has not been defined in ".content" definition, then you simply
need to
remove the <put> element corresponding to the toolbar attribute.
If it already defined in ".content", I think that you cannot do it in the
XML file, but you can still do it by adding a Tiles controller that will
remove that attribute value before rendering definition.
BTW, why do you want to put an attribute with a null value?
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]