AEM editor "pathbrowser" component, sort columns of items to choose from | Community
Skip to main content
New Participant
November 28, 2022
Solved

AEM editor "pathbrowser" component, sort columns of items to choose from

  • November 28, 2022
  • 2 replies
  • 971 views

hi folks,

Has anyone tried to sort the results in the views of the path browser, by name or by modified date?

 

thanks

Fiona

 

granite/ui/components/foundation/form/pathbrowser

 

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 SantoshSai

Hi @fionas76543059 ,

You need to overlay

/libs/cq/gui/components/common/pathbrowser/pathbrowsercolumn/pathbrowsercolumn.jsp 

to

/apps/cq/gui/components/common/pathbrowser/pathbrowsercolumn/pathbrowsercolumn.jsp

and implement the required logic. Please refer the logic on below article: https://aem-dev.blogspot.com/2016/?m=1

Hope that helps!

Regards,

Santosh

2 replies

Employee
November 28, 2022

hi @fionas76543059, There is no OOTB functionality to sort the results based on name or date. You can provide rootPath property to start your search from that path.

 

Coral 3 – Granite UI components – Adobe Experience Manager Blog (techrevel.blog)

 

If you check the jsp of the pathbrowser only attribute you can define are as below

 

"id", "class", "rel", "title",
"name", "value", "emptyText", "disabled", "required", "validation",
"predicate", "rootPath", "optionLoader", "optionLoaderRoot", "optionValueReader", "optionTitleReader", "optionRenderer", "autocompleteCallback",
"crumbRoot", "pickerSrc", "pickerTitle", "pickerValueKey", "pickerIdKey", "pickerMultiselect", "rootPathValidSelection",
"icon", "fieldLabel", "fieldDescription", "renderReadOnly", "ignoreData"

 

Hope this clarifies.

New Participant
November 29, 2022

Thanks all for the great answers!

SantoshSai
SantoshSaiAccepted solution
New Participant
November 28, 2022

Hi @fionas76543059 ,

You need to overlay

/libs/cq/gui/components/common/pathbrowser/pathbrowsercolumn/pathbrowsercolumn.jsp 

to

/apps/cq/gui/components/common/pathbrowser/pathbrowsercolumn/pathbrowsercolumn.jsp

and implement the required logic. Please refer the logic on below article: https://aem-dev.blogspot.com/2016/?m=1

Hope that helps!

Regards,

Santosh

Santosh Sai