Re: howto access the metadata of an index doc
Guido Wesdorp <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
Joachim Schmitz wrote:
> tal:attributes="colspan python:
> model.get_metadata_element('zwec','grid_width');
A sidenote btw, my co-worker Eric was so smart to notice that you may be
having trouble getting the metadata for a document because the metadata
is not stored on document objects, but rather on their versions. Make
sure you call 'get_metadata_element' on a 'Silva Document Version'
object, not on the 'Silva Document' container object...
Cheers,
Guido