[Zope-CMF] Extending a Plone Object

Colin Leath cleath@j9k.org
Fri, 21 Feb 2003 13:42:01 -0500 (EST)


I had this problem last week
and wrote a how-to on it (yet to be published)
http://cmf.zope.org/Members/cleath/addDocProp/

but the zopelabs recipe is up:
http://www.zopelabs.com/cookbook/1045607641

My next project and how-tos (after the cmf migration one and some other
things)

Is to get a better understanding of Metadata!
(what I think I would prefer to use to add a property)

Colin

On Fri, 21 Feb 2003, r.ritz@biologie.hu-berlin.de wrote:

>
>
> 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
>
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>