Expand my Community achievements bar.

SOLVED

Setting deep namespace filter on tags widget

Avatar

Level 7

I am trying to set a second level namespace filter in a tags widget, but it doesn't seem to allow that. Is it possible to filter by namespace any further than first level?

This is what I am trying to do:

<reportertag jcr:primaryType="cq:Widget" fieldLabel="Reporter Tag" name="./cq:tags" xtype="tags"> <namespaces jcr:primaryType="cq:WidgetCollection" maximum="{Long}1" name="person:reporter"> <reporter jcr:primaryType="nt:unstructured" maximum="{Long}1" name="person:reporter"/> </namespaces> </reportertag>
1 Accepted Solution

Avatar

Correct answer by
Level 10

Namespace is always the first level Refer [1]. Does not make sense Or any value with filtering 2nd level deep for namespace since not implemented in product.  In future if product support more than one level, hoping  tagsBasePath will help.     In case you are looking to filter tags implement load function and filter out all the tags.

[1]   http://docs.adobe.com/docs/en/cq/current/developing/tagging.html#Tags

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Namespace is always the first level Refer [1]. Does not make sense Or any value with filtering 2nd level deep for namespace since not implemented in product.  In future if product support more than one level, hoping  tagsBasePath will help.     In case you are looking to filter tags implement load function and filter out all the tags.

[1]   http://docs.adobe.com/docs/en/cq/current/developing/tagging.html#Tags

Avatar

Level 7

Thanks Sham - I expected that was the case.