Multiple selection of tags in different levels | Community
Skip to main content
anelem1760873
Level 4
October 31, 2017
Solved

Multiple selection of tags in different levels

  • October 31, 2017
  • 1 reply
  • 2279 views

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.?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by manoj_devapath

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

1 reply

manoj_devapath
manoj_devapathAccepted solution
Level 5
October 31, 2017

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