I have a pathfield where I am allowing the user to select one or more templates in my site:
<templates
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
emptyText="Optional template(s) to filter results by"
fieldDescription="One or more templates which optionally filter the returned results."
fieldLabel="Templates"
filter="hierarchyNotFile"
multiple="{Boolean}true"
name="./templates"
rootPath="/conf/mysite/settings/wcm/templates"/>
The idea is that I want the content author to be able to select one or more templates that I will perform some logic off of.
Is there a way that I can restrict this selection to only instances of cq:Template? e.g., I do not want the user to be able to select the "Initial" or "Structure" nodes, only the root page template nodes.