Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to exclude internal nodes from pathfield search

Avatar

Level 3

Hi all,

 

In one of our page type's properties, we have a pathfield with pickersrc="/mnt/overlay/granite/ui/content/coral/foundation/form/pathfield/picker.html" and root path set to a folder in DAM. The initial dialog is displayed without issues, but if you search for some keyword, the results contain some internal nodes of the assets, in addition to assets themselves: pathfield-search-results.png

How to configure pathfield so that it only displays assets in search?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Alexander_Prikhodko ,

 

Not able to reproduce in OOTB. In OOTB Search functionality (/libs/granite/ui/content/coral/foundation/form/pathfield/picker/search/form/excludepaths) there is a excludepaths condition to skip the search for jcr:content node and the nodes below it.

kishorekumar14_0-1628609273415.png

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @Alexander_Prikhodko ,

 

Not able to reproduce in OOTB. In OOTB Search functionality (/libs/granite/ui/content/coral/foundation/form/pathfield/picker/search/form/excludepaths) there is a excludepaths condition to skip the search for jcr:content node and the nodes below it.

kishorekumar14_0-1628609273415.png