[Product-Developers] plone.app.portlets: how to add new field to existing schema?
Johannes Raggam
raggam-nl at adm.at
Tue Feb 15 12:36:20 UTC 2011
hi,
in that case, it was a portlet created by me, where i decided to add a
new field to it. it's in collective.gallery and it's not released now,
but toutpt is also working on it and would get an error if there is no
upgrade path.
i guess this will be an collective.developermanual article :)
hannes
On Tue, 2011-02-15 at 04:32 -0800, Mikko Ohtamaa wrote:
>
> johannes raggam wrote:
> >
> > hey all,
> >
> > how can i add a new schema field to an already registered portlet?
> >
> > when i want to visit the edit form of the portlet, i get an error,
> > saying that the new attribute does not exist. for me, it seems that this
> > is a but somewhere between plone.app.portlets and zope.formlib.
> >
>
> I'd suggest don't modify an existing portlet, but subclass it and create
> totally new portlet with extended schema.
>
> E.g. News portlet -> My News Portlet (containing extra field)
>
>
>
> -----
> Mikko Ohtamaa
> Mobilize your Plone site - http://webandmobile.mfabrik.com
> mFabrik - Freedom Delivered. - http://mfabrik.com
>
--
johannes raggam / thet
python plone zope development
http://johannes.raggam.co.at/
mailto:johannes at raggam.co.at
http://bluedynamics.com/
More information about the Product-Developers
mailing list