How to filter CQ.form.PathField options according to the template?
Folks,
I want to use a CQ.form.PathField in a dialog to allow the author to choose a page. However I would like to limit the options to pages that were built using a certain template. The options to filter content based on the path or page name are not applicable. A custom predicate does not seem to work either, since it would discard parent nodes that do not implement my template, but that could potentially have children that do.
Is the only solution here to extend CQ.form.PathField?
Any thoughts?
Thanks,