Tagfield but only level parent dont show child tags
<category
cq:showOnCreate="{Boolean}true"
granite:class="page-tagging-inheritance"
jcr:primaryType="nt:unstructured"
fieldLabel="page.category.label"
fieldDescription="page.category.label.desc"
sling:resourceType="cq/gui/components/coral/common/form/tagfield"
autocreateTag="{Boolean}false"
emptyText="page.tag.singleSelect.emptyText"
name="./pagetagging/category"
required="{Boolean}true"
rootPath="/content/cq:tags/com/careers/category/">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="pagetagging/category"
category-field=""/>
</category>
I have the above and it is getting the correct tags because I used rootPath to have a specific tags to use. Now I want to only show the parent tags and not the child tags .
Is this possible ? I tried using datasource but the data in datasource is not use for the tags.
I want to show only the parent like the first tag and remove the child tag for the 2nd and third tags.