Expand my Community achievements bar.

SOLVED

Multiple selection of tags in different levels

Avatar

Level 4

Dear AEM Community,

I am working with Tags on AEM 6.1. Currently AEM only allows you to select one tag or multiple tags but in the same level. with the tagspicker I want to select multiple tags from different levels.

how can I go about implementing this.?

1 Accepted Solution

Avatar

Correct answer by
Level 6

etc

  • tags
    • namespace
      • article-type
        • blog
        • news
      • asset-type
        • image
        • video

Please use tagsBasePath, and namespaces  for different paths

<article jcr:primaryType="cq:Widget"
  fieldLabel="Article Type"
  name="./cq:tags"
  tagsBasePath="/etc/tags/namespace"
  xtype="tags">
  <namespaces jcr:primaryType="cq:WidgetCollection">
  <ns1 jcr:primaryType="nt:unstructured" maximum="1" name="article-type" /> 
  </namespaces> 
</article>

ref: cq5 - How to filter tags in a component dialog. Adobe CQ - Stack Overflow

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

etc

  • tags
    • namespace
      • article-type
        • blog
        • news
      • asset-type
        • image
        • video

Please use tagsBasePath, and namespaces  for different paths

<article jcr:primaryType="cq:Widget"
  fieldLabel="Article Type"
  name="./cq:tags"
  tagsBasePath="/etc/tags/namespace"
  xtype="tags">
  <namespaces jcr:primaryType="cq:WidgetCollection">
  <ns1 jcr:primaryType="nt:unstructured" maximum="1" name="article-type" /> 
  </namespaces> 
</article>

ref: cq5 - How to filter tags in a component dialog. Adobe CQ - Stack Overflow