Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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.

madhurmadan2296_0-1679248536385.png

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?

madhurmadan2296_1-1679248639847.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Community Advisor

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/...

Avatar

Level 3

Hi @DPrakashRaj ,


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


Avatar

Correct answer by
Community Advisor