SOLVED

Hide folder in document library

Iron Contributor

For some reason we have a "special" folder in all our document libraries. We want to hide this folder (content will be exposed by search but we do not want it visible by browsing the library).

 

I tried to make a new view and put an filter on it (if folder = "special folder" blabla). This seems not possible. Now I try to use js Link to achieve it but I'm a bit stuck. Can someone help me out?

 

Thanks, Mike 

4 Replies
Can you do the view based on the ID of the folder?

Display all items where id ID is NOT 7
I would prefer to have it more dynamic so I can use is for all my document libraries. Sometimes this "special" folder is even within a subfolder (don't ask ..... ;-( )
best response confirmed by Mike Jansen (Iron Contributor)
Solution

Two things:

 

  1. Is it an option to hide all folders generally or only this "specific" one?
  2. As far as I have in mind the view only displays elements where the condition is true. Try it the other way around: IF "Name" is not equal to "Specific Folder Name".
How simple ;) That I did not think it myself "Name" is not equal did the trick.

Thanks
1 best response

Accepted Solutions
best response confirmed by Mike Jansen (Iron Contributor)
Solution

Two things:

 

  1. Is it an option to hide all folders generally or only this "specific" one?
  2. As far as I have in mind the view only displays elements where the condition is true. Try it the other way around: IF "Name" is not equal to "Specific Folder Name".

View solution in original post