[opencms-dev] extending templateone
Christian Steinert
christian_steinert at web.de
Fri Feb 10 02:58:19 CET 2006
[...]
> How would you recommend to do this? Create a separate package
> and copy everything (under GPL conditions) and then modify the
> necessary parts? Or maybe even extends some Templateone
> classes in a separate package and override only some functions?
>
Hi,
It depends on how strongly you want to modify the existing code, I think.
I would say that whatever functionality is VERY different from the
original, should be implemented independently.
If you can re-use a great deal of an existing class, then why not to use
the code as it is and subclass from the existing classes where necessary.
But of course, if you extend the original classes, you have to be
careful, whenever in the future you import a newer version of the
original module.
On the other hand you might also benefit from improved functionality. So
if you care about any future improvements of the original template and
if you don't want to deviate too much, then probably subclassing the
existing code makes more sense.
Only otherwise I would copy everything over into a different package.
Hope that helps,
Regards
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060210/24c050cc/attachment.htm>
More information about the opencms-dev
mailing list