Re: adding metadata
Jan-Wijbrand Kolman <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Organization | Infrae |
| Message-ID | <[email protected]> |
Andy Altepeter wrote:
> Is there a way to conditionally display a metadata set for a content type
> (silva document)?
>
> What I want is to only display the set if the document is located in a
> specific place. Can I use the new 'category' property in 1.3 to achieve
> this?
I don't think so. The 'category' property is really only useful to distinguish
metadata sets for a particular use ('content' metadata, vs. for example 'layout
settings' metadata).
Conditionally showing a metadata set sounds rather difficult to me, in the
current framework...
Maybe, just maybe, you might be able to do something with the metadata 'access
handlers'. There're registered in SilvaMetadata/Access.py. If you register
another access handler that returns only the sets according to the conditions
you'd like... maybe that's an idea?
I'm curious, please let me know (are you on #silva?) if that would work out!!
kind regards,
jw
--
Jan-Wijbrand Kolman
[email protected]