Expand my Community achievements bar.

SOLVED

How to sort Content finder assets to Alpha numeric?

Avatar

Level 4

Hi All,

 

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

 

Thanks,

Michael 

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

4 Replies

Avatar

Level 10

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. 

Avatar

Level 4

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

Avatar

Correct answer by
Employee

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