How to sort Content finder assets to Alpha numeric? | Community
Skip to main content
mikezooz
New Participant
October 16, 2015
Solved

How to sort Content finder assets to Alpha numeric?

  • October 16, 2015
  • 4 replies
  • 1534 views

Hi All,

 

Could you please redirect me, how to sort the contentfinder assets to alpha numeric.

 

Thanks,

Michael 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

Hi,

You will need to write your own servlet that backs your Content Finder extension. You can take a look at http://adobe-consulting-services.github.io/acs-aem-commons/features/contentfinder-querybuilder.html for a method of implementing Content Finder tabs with a more flexible backend than is provided out of the box.

Note that you can also just do this by adding "order:jcr:content/cq:name" to your query, i.e. if you put "geometrixx order:jcr:content/cq:name" in the search box, you'll get the search results sorted by name.

Regards,

Justin

4 replies

smacdonald2008
New Participant
October 16, 2015

What you need to do is overlay the Content Finder. You can find Content Finder here:

/libs/wcm/extensions/contentfinder

Copy to apps and then override. I am trying to find an example that shows this - but the only KB I can find is how to modify the Content Finder by adding a tab:

https://helpx.adobe.com/experience-manager/kb/CustomCFTab.html

this gives you an idea of how to modify. However - for your use case - you need to change the application logic to sort names of assets by name and display the sorted list of assets. 

mikezooz
mikezoozAuthor
New Participant
October 16, 2015

Thanks for your reply.

 

I have overlay the content finder files. these files call the below service and display the result depends on the  lastmodified date.

/bin/wcm/contentfinder/asset/view.json/content/dam

My Question is:

1) is there a way to modify the service?

2) Where is the service implementation (ie) path?

 

Thanks,

Michael

edubey
New Participant
October 16, 2015

Yes ,

Please refer to this article for adding filter to content finder tabs.

http://experience-aem.blogspot.in/2013/10/aem-cq-56-extend-and-add-filters-to-object-finder-pag-tab.html

Thanks

JustinEd3Accepted solution
Employee
October 16, 2015

Hi,

You will need to write your own servlet that backs your Content Finder extension. You can take a look at http://adobe-consulting-services.github.io/acs-aem-commons/features/contentfinder-querybuilder.html for a method of implementing Content Finder tabs with a more flexible backend than is provided out of the box.

Note that you can also just do this by adding "order:jcr:content/cq:name" to your query, i.e. if you put "geometrixx order:jcr:content/cq:name" in the search box, you'll get the search results sorted by name.

Regards,

Justin