AnsweredAssumed Answered

Create custom datalist with category association

Question asked by fabiogomes.ti on Jul 29, 2013
Latest reply on Apr 28, 2015 by fabiogomes.ti
Hello everyone,

I need to create a datalist custom that allows the user to associate categories to items. I know you can use associations as "cm: person", "cm: content", "cm: cmobject", but when I try to use "cm: category" it does not work and does not gives error, in form appears the option to select the categories but does not appear the categories, only folders.

See my code:


                <associations>
          <association name="pro:categories_data_list">
             <title>Categories</title>
             <source>
                <mandatory>false</mandatory>
                <many>true</many>
             </source>
             <target>
                <class>cm:content</class>
                <mandatory>false</mandatory>
                <many>true</many>
             </target>
          </association>
       </associations>

Outcomes