No... you can't extend the template file, at least not yet that I've heard of.

You may be able to consider instead of extending the component you
could create a container for it that passes the block as a parameter,
along with whatever other configuration.

Parent template:

<div>
<t:defer to="overrideBlock">
</div>

<t:block id="defaultOverrideBlock">default stuff</t:block>

in the Parent class your getOverrideBlock either returns the parameter
overrideBlock or the defaultOverrideBlock.

Child template:

<t:parent>
<t:parameter name="overrideBlock">
override stuff....
</t:parameter>
</t:parent>

Of course, that's not going to be the right solution in all cases...

Josh

On Fri, Apr 4, 2008 at 8:22 AM, Peter Beshai <[EMAIL PROTECTED]> wrote:
> I have a parent component Base and a component Child which extends Base. If
> I want Child to use Base's template, I cannot include a template file for
> Child. However, I am interested in overriding just one block of Base's
> template with Child and I was wondering if there is anyway to do this.
>
> Thanks,
> Peter Beshai
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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

Reply via email to