cancel
Showing results for 
Search instead for 
Did you mean: 

Related categories

hbf
Champ on-the-rise
Champ on-the-rise
Hi,

Does Alfresco's content model support the notion of "related categories"? In my application, many synonyms (=related categories) exist for the same category and I'd like to model this.

If there is no such notion (yet), how would I best model synoyms? I first thought I could subtype d:category but this is a basic type and (probably?) not subtypable.

So maybe I just add a new container at the "system level" that contains as its children instances of type "synonymlist", say. The type synonymlist represents the list of synonyms for a particular category and contains a list of strings that are the synonyms:


  <type name="my:synonymlist">
   <title>List of synonyms of a category</title>
   <parent>cm:content</parent> <!– to be editable in Web Client –>
   <properties>
    <property name="my:category">
     <type>d:category</type>
    </property>
    <property name="my:synonyms">
     <type>d:text</type>
     <multiple>true</multiple>
    </property>
   </properties>
  </type>

Or is there a different approach that maybe integrates more easily with the Web Client?

Regards,
Kaspar
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

It is possible to create synonyms. Categories are defined by the QNames of chelid relationships between category nodes. There can be more than one child relaionship and Qname (and more than one route) between two nodes. So just create links in the node service of the ci=orrect type and with the synonym names you want. (This can also be done in the bootstrap XML)

This is not supported via the category service or the UI. If I recall correctly,  it is tested.

Andy