How to configure pathfield to show resource of specific jcr:primaryType | Community
Skip to main content
Madhur-Madan
Community Advisor
Community Advisor
March 19, 2023
Solved

How to configure pathfield to show resource of specific jcr:primaryType

  • March 19, 2023
  • 2 replies
  • 941 views

I have a requirement where I need to allow the author to select only the content fragment (dam:Asset) while using pathfield in dialog and preventing the author to select the parent folder.

The author should only be able to select "custom-cf" and not the parent folders


Is there any property which can be added to the resource below to achieve this?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

DPrakashRaj
Community Advisor
Community Advisor
March 19, 2023

You can take the help of footpath and filter property of path field. Looks at the document for details on which you can. Least filter which all Jose Troyes you wants to show.

https://developer.adobe.com/experience-manager/reference-materials/6-5/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/pathfield/index.html

Madhur-Madan
Community Advisor
Community Advisor
March 19, 2023

Hi @dprakashraj ,


I have already tried using the filter and rootPath properties but I'm not able to achieve the desired result.


arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 21, 2023