click-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <>
Subject Re: Border pages inheritance
Date Wed, 28 Apr 2010 22:17:49 GMT
Hi Hans,

There is no template hierarchy support based on Java inheritance. The border-template might
like an inheritance based hierarchy but is in fact a Velocity #parse directive which includes
child template.

Of course the child templates can have their own #parse directive and so on, forming a hierarchy
templates, but it is not based on Java inheritance. The pages could drive the template hierarchy
passing in the #parse direct template value.



Kind regards


On 28/04/2010 23:13, wrote:
> Hi,
> I've been in trouble to make a three level inheritance of border pages ?.. i have the
next hierarchy:
> Page -> Sub Section Page -> Section Page -> Border Page 
> The problem lies in overriding getTemplate(...) in subclasses of Border Page: Java inheritance
works fine, but this kind of html "inheritance" is lost. It seems that the solution may come
from some velocity workaround. The idea is preserve the modularity of pages hierarchy. 
> ¿ Someone has some clue about this ?
> Thanks
> Hans

View raw message