Sorting by last modified by in AEM assets.html | Community
Skip to main content
anshus83799232
Level 2
May 17, 2018
Solved

Sorting by last modified by in AEM assets.html

  • May 17, 2018
  • 8 replies
  • 7537 views

Hi All,

I have a requirement where I need to sort the search results in assets.html page as per last modified date. I am attaching a screenshot where we can see that there is no sort order as per date. This is the OOTB result with AEM6.3 SP2. Any help on this would be appreciated. I tried Adobe Experience Manager Customization: AEM 6.2 sort pages in sites admin console this link to sort results for sites.html but it doesn't work

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 anshus83799232

overlay /libs/ dam/gui/content/facets/assets/items under apps and go to /apps/dam/gui/content/facets/assets/items/

create a node nt:unstructured orderby

<orderby

                 jcr:primaryType="nt:unstructured"

                  sling:resourceType="granite/ui/components/coral/foundation/form/hidden"

                  listOrder="17"

                  metaType="hidden"

                  name="orderby"

                  value="@jcr:content/jcr:lastModified"/>

8 replies

arunpatidar
Community Advisor
Community Advisor
May 17, 2018

Hi,

Could you please try to switch on List view and then click on modify date for ascending and descending order sort. if it helps

Thanks

Arun

Arun Patidar
anshus83799232
Level 2
May 18, 2018

Actually the requirement is to display the sorted search result in card view.

July 10, 2018

Hey there! Were you able to solve this? Thanks!

smacdonald2008
Level 10
July 10, 2018

List view list you sort by mod date - sometimes its better to use the given functionality in AEM then trying to modify code under /libs. Here is this sorted by mod date:

July 11, 2018

The requirement is to order in card view, and also the only ones to order are assets, not folders, so... I thought it was an easier modification, but it's taking a lot of time and not sure how to do it yet. Also adding parameters under /libs/dam/gui/content/assets/jcr:content/views/card in the src property /mnt/overlay/dam/gui/content/assets/jcr:content/views/card{.offset,limit}.html{+id}?sortName=modified&sortDir=asc is not applicable because I have to exclude folders from the ordering. Any clues?

anshus83799232
anshus83799232AuthorAccepted solution
Level 2
July 16, 2018

overlay /libs/ dam/gui/content/facets/assets/items under apps and go to /apps/dam/gui/content/facets/assets/items/

create a node nt:unstructured orderby

<orderby

                 jcr:primaryType="nt:unstructured"

                  sling:resourceType="granite/ui/components/coral/foundation/form/hidden"

                  listOrder="17"

                  metaType="hidden"

                  name="orderby"

                  value="@jcr:content/jcr:lastModified"/>

VictorToledo_
Level 3
September 24, 2018

Hi all, i need to implement the same thing but i need to sort by Title. I have AEM 6.3.2.0 but i dont have the node "/libs/dam/gui/content/facets/assets/items", could you help me?

thejashwinibm
November 21, 2019

Hi I have the same implementation to be done, i'm working with Version 6.3.3.2 where i have installed 6.3.3.0 service pack and AEM-CFP-6.3.3.2 OOTB sort is not on date. And am not finding the path "/libs/dam/gui/content/facets/assets/items" any help would be helpful.