Share » Forums » Setup & design » Is it possible to create derived...

Is it possible to create derived classes?

Is it possible to create derived classes?

Wednesday 16 June 2004 1:13:56 pm - 1 reply

Author Message

Paul Forsyth

Wednesday 16 June 2004 1:25:57 pm

No, it isnt possible to derive/inherit classes. When i first encountered eZ publish I thought this too :(

However, there is a perfectly good workaround. Use object relations. BY adding an object relation or an object relation list to your base class you can then add objects of other classes to your main object. The template code can then recognise what classes are being used and show the appropriate html. We use this model extensively.

paul

--
http://www.visionwt.com

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu