[Zope3-dev] Meta Data? (was: Better access to APIs in paths)

Steve Alexander steve@cat-box.net
Mon, 24 Feb 2003 11:10:59 +0200


> Is there a way, to let Zope3 know to use my own attribute "title"
> instead of the one from metadata?

Yes. You can override how the Dublin Core stuff works for your own 
content type. You can do this by writing an adapter that derives from 
ZDCAnnotatableAdapter, supplying your own 'title' property.

You register your adapter so that it gets used when adapting your 
content objects to IZopeDublinCore.


Otherwise, you could change your content class so that its title 
attribute is really a property that uses the title in the dublin core 
data for your object.

--
Steve Alexander