AnsweredAssumed Answered

How to model a key/value multivalued property?

Question asked by franco_valente on Apr 7, 2011
Latest reply on Apr 14, 2011 by franco_valente
Hi,

I need to model a key/value "multivalued" property.I.e:
What I need is to tag contents by giving a weight to each tag, for example:

Psychology => 5
sport => 2
personal => 6

So, I can get my own taggable aspect by implementing this

<aspect name="l4a:TT1taggable">
   <title>Tassonomia TT-1</title>
   <parent>cm:classifiable</parent>
   <properties>
      <property name="l4a:TT1categories">
         <title>Categories</title>
         <type>d:category</type>
         <mandatory>false</mandatory>
         <multiple>true</multiple>
         <index enabled="true">
            <atomic>true</atomic>
            <stored>true</stored>
            <tokenised>true</tokenised>
         </index>
      </property>
   </properties>
</aspect>

But I want my "l4a:TT1categories" property to be a list of key/value items.
I know this kind of question is not specific for categories only. This is a  general modeling question.
How can I model this context? How do you suggest to continue?

Outcomes