<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2>Dinshaw -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2>I'm sorry; I misunderstood your question, anyway. As
far I can tell, you want the value of multiple elements to map on to a single
property, whereas in my case I was merely setting an element's 'value' (and
thereby a mapped property) using values derived from a multi-select
widget.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2>Are you restricted to using a PHP application layer?
If you used Java executing in the OpenCms context, you'd have far more
flexibility - e.g. Java could process the XML document instance whenever it
wanted, maybe setting a property to help in later querying for category-matching
resources. I take a different approach at <A
href="http://www.colfes.com">www.colfes.com</A>: I index XML docs in Lucene, and
query the Lucene index at page rendering time (with some caching) to select
resources matching multiple categories.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2>By the way, is the code to your CmsCategorySelectWidget
something you can share? I currently flatten a hierarchical value
structure and represent it in a simple SelectorWidget -
ugly!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=931112405-07102006><FONT face=Arial
color=#0000ff size=2>Jon</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>dinshaw
gobhai<BR><B>Sent:</B> 06 October 2006 17:56<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> Re: [opencms-dev] Multiple values to a single
Property?<BR></FONT><BR></DIV>
<DIV></DIV>Hi Jon,<BR>Thanks very much. I tried your sugestion and still my
values are overwritten.<BR>My relevent schema lines are:<BR><BR><xsd:element
name="Category" type="OpenCmsString" /><BR><layout element="Category"
widget="CmsCategorySelectWidget" /> <BR><mapping element="Category"
mapto="property:category" /><BR><BR>If you have a second to see if there is
anything dumb in here (like I shouldn't be using String) that would be
great.<BR>The CmsCategorySelectWidget uses a MySQL nested set modle category
table to return a tree stucture. <BR>Thanks again,<BR>-Dinshaw <BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 10/6/06, <B class=gmail_sendername>Jonathan
Woods</B> <<A
href="mailto:jonathan.woods@scintillance.com">jonathan.woods@scintillance.com</A>>
wrote: </SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Dinshaw
-</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>I use a
SelectorWidget to render a multiple-select list in a couple of my XSDs, and I
used to map the (multiple) value of this using an ordinary <mapping>
element. OpenCms populated the property with the values selected,
separating them with a comma (or was it a semicolon? can't
recall).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Jon</FONT></SPAN></DIV><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A>] <B>On Behalf Of </B>dinshaw
gobhai<BR><B>Sent:</B> 05 October 2006 18:48<BR><B>To:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:opencms-dev@opencms.org"
target=_blank>opencms-dev@opencms.org</A><BR><B>Subject:</B> [opencms-dev]
Multiple values to a single Property?<BR></FONT><BR></DIV>
<DIV><SPAN class=e id=q_10e1bfd421aedf77_1>
<DIV></DIV>Hi there,<BR>I am fairly new to OpenCMS and have found references
to that fact that i can map multiple values to a single property however I can
not find a guide as to how.<BR>If anyone could point me to a reference that
would be great. <BR><BR>The problem is that I have a category select
list for a content type my_article.xsd that needs to occur multiple times so
that it can appear on different category pages simultaneously.<BR><BR>The
catch is that the system I am working on has built a php application layer to
get and parse the OpenCMS content and they sql query needs the property value
to target the articles that should be included. <BR><BR>Currently only the
first instance of the Category select list is mapped to the category
property.<BR><BR><mapping element="Category" mapto="property:category"
/><BR><BR>so what i was looking for (i think) was something like
<BR><mapping element="Category" mapto="property:category" multiple="true"
/><BR><BR>But i have been unable to find it.<BR><BR>Any help would be
greatly appreciated.<BR>Thanks,<BR>-Dinshaw, NYC
<BR><BR></SPAN></DIV></DIV><BR><BR>_______________________________________________<BR>This
mail is sent to you from the opencms-dev mailing list<BR>To change your list
options, or to unsubscribe from the list, please visit<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>