Expand my Community achievements bar.

Introducing Adobe LLM Optimizer: Own your brand’s presence in AI-Powered search and discovery

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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


Santosh Sai

AEM BlogsLinkedIn


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


Santosh Sai

AEM BlogsLinkedIn


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.

Avatar

Level 7

Thanks all for the great answers!