Re: getMetadataValue optionally acquires?

Nico Grubert <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
> I'm working on a silva extension (photo gallery) which uses the silva-extra 
> description for gallery containers and images.  Both image's and gallery 
> container's descriptions are rendered on the page.  The descriptions are 
> retrieved using MetadataTool.getMetadataValue.  There's one problem though.  
> If a description is set on the container, then all images within that 
> container that do not have a description set acquire the containers 
> description.  

Hi Andy,

I had the same problem here a couple of weeks ago.
Assuming both your image's and gallery container's descriptions use the 
metadata element "content_description" defined in metadata set 
"silva-extra":

   You must disable the acquisition for the metadata element
   "content_description" that is used by your container.
   In ZMI, go to:
    /service_metadata/collection/silva-extra/content_description
   Set "Enable Acquisition" to "No".

If you don't use content_description metadata of silva-extra but an own 
set, you just need to do the same for your own metadata element.

Regards,
   Nico
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.