AEM editor "pathbrowser" component, sort columns of items to choose from | Community
Skip to main content
Level 6
Nov 28, 2022 9:14 PM UTC
Solved

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

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.
SantoshSai
SantoshSaiAccepted solution
New Participant
Nov 28, 2022 9:39 PM UTC

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

3 replies

Employee
Nov 28, 2022 9:59 PM UTC

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.

Translate
Level 6
Nov 29, 2022 11:00 AM UTC

Thanks all for the great answers!

Translate
SantoshSai
SantoshSaiAccepted solution
New Participant
Nov 28, 2022 9:39 PM UTC

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

Translate
Santosh Sai