How to exclude internal nodes from pathfield search | Adobe Higher Education
Skip to main content
Level 2
August 10, 2021
Beantwortet

How to exclude internal nodes from pathfield search

  • August 10, 2021
  • 1 Antwort
  • 822 Ansichten

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?

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antwort

Kishore_Kumar_
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!