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