cancel
Showing results for 
Search instead for 
Did you mean: 

How to sort document folder view on left panel

shashank_tyagi
Champ in-the-making
Champ in-the-making

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

1 REPLY 1

kalpesh_c2
Star Collaborator
Star Collaborator

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,

Contcentric