How to exclude internal nodes from pathfield search | Community
Skip to main content
Level 2
August 10, 2021
Solved

How to exclude internal nodes from pathfield search

  • August 10, 2021
  • 1 reply
  • 822 views

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: 

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

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

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.

 

1 reply

Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
August 10, 2021

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.

 

Level 2
August 12, 2021

Hi @kishore_kumar_ ,

 

Thanks a lot, excludepaths solved the issue!