I'm trying to filter the supercategories that can be referenced by a given product in Hybris Backoffice. For example if we have the following category structure:
CategoryA
SubCategoryA1SubCategoryA2
CategoryB
SubCategoryB1SubCategoryB2
Lets say I want my products to be able to reference only subcategories of CategoryB. In the documentation is given an example how to narrow the results and guarantee that all search results would have the same catalog version as the parent-object with a relation to the current editor.
<editorArea:attribute qualifier="supercategories">
<editorArea:editor-parameter>
<editorArea:name>referenceSearchCondition_catalogVersion</editorArea:name>
<editorArea:value>{parentObject.catalogVersion}</editorArea:value>
</editorArea:editor-parameter>
</editorArea:attribute>
What changes should I make in the configuration? I guess I need to somehow restrict the available categories to be a subtype of a given supercategory. Any help would be appreciated!