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
Solved! Go to Solution.
Views
Replies
Total Likes
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
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
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.
Thanks all for the great answers!
Views
Like
Replies