cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while hiding document-tree in document library

Isha
Champ in-the-making
Champ in-the-making

Hi,

My issue is when i am trying to hide the side library/document tree the one highlighted with upload/create also gets hidden. Can you please guide me how i can hide only side document tree/library.Thanks!!

image

5 REPLIES 5

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

How you are hiding?

Which files you are modifying?

Hi @sanjaybandhniya 

I am using below xml file in site-data to hide component.

<!-- This files is to remove tree component from site -->
<extension>
<modules>
<module>
<id>Hide Document Tree</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<components>
<component>
<region-id>tree</region-id>
<source-id>documentlibrary</source-id>
<scope>template</scope>
<sub-components>
<sub-component id="default">
<evaluations>
<evaluation id="ToHideDocumentTree">
<render>false</render>
</evaluation>
</evaluations>
</sub-component>
</sub-components>
</component>
</components>
</module>
</modules>
</extension>

Hi,

With given code, for me it is hiding only document tree, not toolbar.

Path of extension module file : web-extension\site-data\extensions\demo-xxx.xml

image

Hi @sanjaybandhniya ,

Thanks for replicating the issue .If you notice that above the document the value got changed as "node.root"(below create action ). Also if you hide sidebar components like categories and tags then it will hide the mentioned upper menus also

May be you can override tree.js file to remove treeview.