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

Sorting by last modified by in AEM assets.html

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.
anshus83799232
anshus83799232Accepted solution
Level 2
Jul 16, 2018 8:23 AM UTC

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

thejashwinibm
New Participant
Nov 21, 2019 10:10 AM UTC

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.

Translate
VictorToledo_
Level 3
Sep 24, 2018 6:19 PM UTC

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?

Translate
anshus83799232
anshus83799232AuthorAccepted solution
Level 2
Jul 16, 2018 8:23 AM UTC

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"/>

Translate
New Participant
Jul 11, 2018 12:37 AM UTC

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?

Translate
smacdonald2008
Level 10
Jul 10, 2018 9:16 PM UTC

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:

Translate
New Participant
Jul 10, 2018 8:03 PM UTC

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

Translate
anshus83799232
Level 2
May 18, 2018 4:18 AM UTC

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

Translate
arunpatidar
New Participant
May 17, 2018 9:49 PM UTC

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

Translate
Arun Patidar