Forum Discussion

Mike Jansen's avatar
Mike Jansen
Iron Contributor
Apr 19, 2017
Solved

Hide folder in document library

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 

  • 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".
  • 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".
    • Mike Jansen's avatar
      Mike Jansen
      Iron Contributor
      How simple ;-) That I did not think it myself "Name" is not equal did the trick.

      Thanks
  • Brent Ellis's avatar
    Brent Ellis
    Silver Contributor
    Can you do the view based on the ID of the folder?

    Display all items where id ID is NOT 7
    • Mike Jansen's avatar
      Mike Jansen
      Iron Contributor
      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 ..... ;-( )

Resources