Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

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

Avatar

Level 7

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

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Employee Advisor

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.