[Zope-CMF] Extending a Plone Object

Raphael Ritz r.ritz@biologie.hu-berlin.de
Fri, 21 Feb 2003 16:09:18 +0100


David Rawle wrote:

>I'm pulling my hair out here...
>
>I would like to create a new content type by adding a new field (summary) to
>the standard Event object. And then create new forms based on the standard
>event forms with the new field on it.
>
>What do I need to do? Do I have to create a whole new content type or can I
>just extend Event. I have tried loads of things and always seem to end up
>getting 404 or other errors.
>
>I got quite excited when I found http://plone.org/documentation/book/8/view,
>but that example doesn't add any new properties to the object.
>
>Any help? Any docs out there?
>
Unfortunately you can't extend existing content types by simply adding a 
few more
properties (I wish there were an easy way for this).
You should write a product in which you define your custom content type.
Here you might just subclass Event, add the property, and adjust its 
view/edit/edit_form.

Do you know
http://plone.org/documentation/howto/HowToWriteYourOwnContentType

An alternative could be to use CMFTypes
http://sourceforge.net/projects/collective

Raphael