Expand my Community achievements bar.

SOLVED

Add Sort Options in AEM Pathfield Dialog 6.5.x

Avatar

Level 2

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

ayush_aem_1-1677424584596.png

 

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @ayush_aem 

 

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.

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @ayush_aem 

 

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.