How to exclude internal nodes from pathfield search | Community
Skip to main content
Level 2
Aug 10, 2021 2:47 PM UTC
Solved

How to exclude internal nodes from pathfield search

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.
Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
Aug 10, 2021 3:29 PM UTC

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.

 

2 replies

Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
Aug 10, 2021 3:29 PM UTC

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.

 

Translate
Level 2
Aug 12, 2021 2:31 PM UTC

Hi @kishore_kumar_ ,

 

Thanks a lot, excludepaths solved the issue!

Translate