Skip to main content
carloso98118279
Feb 2, 2017 3:10 AM UTC
Solved

Restrict tags path while using autocomplete

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Feb 2, 2017 4:09 AM UTC

2 replies

edubey
edubeyAccepted solution
Level 10
Feb 2, 2017 4:09 AM UTC
carloso98118279
Feb 2, 2017 1:11 PM UTC

Thanks edubey!

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

Translate