Expand my Community achievements bar.

SOLVED

Restrict tags path while using autocomplete

Avatar

Level 2

I'm using AEM 6.1 and using the following code to provide an autocomplete form to select a tag in a Touch UI dialog:

<tags jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/autocomplete" fieldLabel="My Tags" mode="contains" multiple="{Boolean}true" name="./cq:tags"> <datasource jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/common/datasources/tags"/> <values jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/autocomplete/tags"/> <options jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/autocomplete/list"/> </tags>

However this is showing all tags when autocompleting. Is there a way to restrict what tags will be shown (something like tagsPath from tagspicker)?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10

Avatar

Level 2

Thanks edubey!

I was thinking in an OOB solution. But I'll take a look into that extension.