Re: what to do, to use a new meta-data-set ?

Joachim Schmitz <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
that was not correct, I am looking at the index doc of a folder,  so it 
must be:

tal:attributes="
class python: model.index.get_metadata_element('zwec','css_class')"




Joachim Schmitz schrieb:
> just found the error myself:
> 
> the pagetemplate is the content.pt from a layoutservice, so the "here" 
> must be "model"
> 
> Joachim Schmitz schrieb:
> 
>> Hi,
>>
>> with Silva 1.0 :
>>
>> I created a new meta-data-set with Namespace URI: 
>> http://infrae.com/namespaces/metadata/zwec, and Namespace Prefix: 
>> "zwec", added two fields to it, and activated it. I edited the
>> Content Type Metadata Mapping for a Silva Document Version to 
>> "silva-content, silva-extra, zwec"
>>
>> After that the new metadata-set shows in the properties for each silva 
>> document version. I can edit the new metadata. BUT when I try to 
>> access it in a pagetemplate with:
>>  tal:attributes="
>>  class python: here.get_metadata_element('zwec','css_class')"
> 
>                  ^^^^^ must be model so this looks like:
> 
> tal:attributes="
> class python: model.get_metadata_element('zwec','css_class')"
> 
> 


-- 
Mit freundlichen Grüßen                                Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163
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.