Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to exclude internal nodes from pathfield search

Alexander_Prikhodko
Level 2
Level 2

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
kishorekumar14
Correct answer by
Level 7
Level 7

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
kishorekumar14
Correct answer by
Level 7
Level 7

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