10-29-2018 04:45 AM
I want sort document view on left panel based on created date of folder not by name in ascending order. Please find screenshot for reference.
I want to sort months folder(MARKED IN RED) based on created date i.e. September created first then October and so on like in document library on right side . Can any one help me to fix this sorting issue.
Thanks,
Shashank Tyagi
10-29-2018 09:29 AM
Hi,
Path : templates\webscripts\org\alfresco\slingshot\documentlibrary\treenode.get.js
You can modify and override treenode.get.js file and set cm:created instead of cm:name to get folder base on sorting order.
// Look for folders in the pathNode - sort by ascending name
var pagedResult = parsedArgs.pathNode.childFileFolders(false, true, ignoredTypes, 0, maxItems, 0, "cm:name", true,
"TODO");
This file is reside within jar.
alfresco-share-services-5.2.e\alfresco\templates\webscripts\org\alfresco\slingshot\documentlibrary\treenode.get.js
Thanks,
Explore our Alfresco products with the links below. Use labels to filter content by product module.