Expand my Community achievements bar.

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
Level 10

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
Level 10

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