cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot create a rootCategory using javascript api

xsp
Champ in-the-making
Champ in-the-making
Hi,

I have my own classification aspect as described below.
Does anyone have the right javascript to create a root category for it? I tried different codes but with no success.

   <aspects>      <aspect name="sc:amendable">         <title>Categories</title>         <parent>cm:classifiable</parent>         <properties>             <property name="sc:reasons">               <title>Categories assigned</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>   </aspects>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Thanks very much
1 REPLY 1

rwetherall
Confirmed Champ
Confirmed Champ
Could you provide an example of the type of JavaScript you are trying?

Thanks,
Roy