Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Search in pathfield picker not listing title but nodename only

Avatar

Level 1

Dear Community,

 

I am trying to enable the title from content-fragments to show in the search-result of the granite-pickerdialog.

The search was on the nodename only by default.

With an additional oak:index, this couled be solved and the search now works on the title.

However, the title is not showing up in the serach result. (It is listed if no search is done)

 

How can I add the jcr:title (or data/master/title from content-fragment) into the serach result so people actually see what they searched for?

 

grodintierce_0-1694700149722.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @grodintierce 

 

To use "Title" we would need to -

  • overlay /libs/granite/ui/components/coral/foundation/form/pathfield/card/card.jsp
  • update
String title = resource.getName();

But the file lies in granite:FinalArea, which we should not overlay.

 

Other alternative:

create your own picker based on: /libs/dam/cfm/content/cfpicker/picker, which uses the updated card.jsp

 

Also, please post this enhancement as an Idea on the portal

 


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @grodintierce 

 

To use "Title" we would need to -

  • overlay /libs/granite/ui/components/coral/foundation/form/pathfield/card/card.jsp
  • update
String title = resource.getName();

But the file lies in granite:FinalArea, which we should not overlay.

 

Other alternative:

create your own picker based on: /libs/dam/cfm/content/cfpicker/picker, which uses the updated card.jsp

 

Also, please post this enhancement as an Idea on the portal

 


Aanchal Sikka