Issue while hiding document-tree in document library

cancel
Showing results for 
Search instead for 
Did you mean: 
Isha
Member II

Issue while hiding document-tree in document library

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!!

documettreeHide.JPG

5 Replies
sanjaybandhniya
Intermediate

Re: Issue while hiding document-tree in document library

How you are hiding?

Which files you are modifying?

Isha
Member II

Re: Issue while hiding document-tree in document library

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>

sanjaybandhniya
Intermediate

Re: Issue while hiding document-tree in document library

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

Screenshot_1.png

Isha
Member II

Re: Issue while hiding document-tree in document library

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

sanjaybandhniya
Intermediate

Re: Issue while hiding document-tree in document library

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