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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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

 

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now