Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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