[opencms-dev] Mapping multiple values to a single property

Paul-Inge Flakstad flakstad at npolar.no
Mon Feb 8 16:00:09 CET 2010


Greetings Achim,

Thanks a bunch for providing the correct solution, and really fast too! :D 

Works like a charm now. ;)

Cheers,
Paul 

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Achim Westermann
> Sent: 8. februar 2010 15:52
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] Mapping multiple values to a 
> single property
> 
> Hi Paul,
> 
> try something like:
> 
> mapto="propertyList:collector.categories"
> 
> HTH,
> 
> Achim
> 
> Paul-Inge Flakstad wrote:
> > Hi
> >  
> > I'm working with categories, and in my XSD I would like to map the 
> > multiple values of a re-occuring category element to a 
> single property. 
> > (I know this question has been asked before, but searching didn't 
> > provide any good answer.)
> >  
> > If I put e.g.:
> >  
> >     <xsd:element name="Category" type="OpenCmsString" minOccurs="0" 
> > maxOccurs="10" />
> >     ...
> >     <mapping element="Category" 
> mapto="property:collector.categories" />
> >  
> > then only the first category is mapped to the property 
> > "collector.categories".
> >  
> > The OpenCms 6.0.2 release notes say "XML content mappings can map 
> > multiple occurrences of a value to a property list value". 
> That sounds 
> > about right for what I'm looking for, but how do I 
> configure this in my XSD?
> >  
> > Best regards,
> > Paul
> > 
> > 
> > 
> --------------------------------------------------------------
> ----------
> > 
> > 
> > _______________________________________________
> > This mail is sent to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the 
> list, please visit
> > http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> Vorstand: Sylvius Bardt (Vors.), Tim Schiffers, Dr. Ulrich 
> Kohl, Michael Knapstein
> Aufsichtsratsvorsitzender: Michael Wölfle
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 


More information about the opencms-dev mailing list