Add Sort Options in AEM Pathfield Dialog 6.5.x | Community
Skip to main content
Level 2
February 26, 2023
Solved

Add Sort Options in AEM Pathfield Dialog 6.5.x

  • February 26, 2023
  • 1 reply
  • 864 views

I am trying to implement a sort feature just like AEM Assets as show below in Pathfield Dialog.

 

Whenever an author selects a path by opening the pathfield dialog, the author should be shown with a sort By option as shown above so that the author can sort the items on the current path which he is currently on. If he is traversing a path /content/we-retail/us/en and then chooses to sort by selecting any field then the only immediate child pages should be sorted by the selected option. This is view only and not expected to sort nodes in repository. Any pointers/references would be helpful. Thank you.

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 Kiran_Vedantam

Hi @ayushag3 

 

The sort option that comes out of the box is based on the coral UI and I am not sure if you can overlay it on the dailog field.

 

You can definitely write your custom logic like this:

  1. Create JS to load the sorting option on the dialog load
  2. On click you can write the sorting logic as per your path

Hope it helps!

Thanks,
Kiran Vedantam.

 

1 reply

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
February 27, 2023

Hi @ayushag3 

 

The sort option that comes out of the box is based on the coral UI and I am not sure if you can overlay it on the dailog field.

 

You can definitely write your custom logic like this:

  1. Create JS to load the sorting option on the dialog load
  2. On click you can write the sorting logic as per your path

Hope it helps!

Thanks,
Kiran Vedantam.