cancel
Showing results for 
Search instead for 
Did you mean: 

Document Library - Automatically Display Folders

sthurrott
Champ in-the-making
Champ in-the-making
How do you set the default property to always display folders in the Dcoument Library?  I have to hit the Show Folders button everytime I navigate to the library.

Thanks
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
Hi

Yes - it's something that I've been meaning to persist through the Preferences service, but it's not bubbled to the top of my list yet.

In the meantime, you can change the Document Library globally so that folders are shown by default by editing the following two files:

documentlist.get.html.ftl
Append showFolders: true to the setOptions function call (after highlightFile - remember to add a comma on the end of that line).

The button doesn't automatically pick up the changed default, so if this bothers you, you can also update as follows:

documentlist.js
Search for Hide/Show Folders button around line 490 and add
this.widgets.showFolders.set("label", this._msg(this.options.showFolders ? "button.folders.hide" : "button.folders.show"));
after the createYUIButton call.

Thanks,
Mike

sthurrott
Champ in-the-making
Champ in-the-making
Thanks, worked perfectly.