Oct 25 2016 10:49 AM
In SPO, how can we hide the quick launch when the Metadata navigation controls are enabled for a document library. In 2010, we could edit the Master Page but I would rather not do that in SPO.
Oct 25 2016 12:23 PM - edited Oct 25 2016 02:58 PM
The only other way I know of for hiding quick launch conditionally is via jQuery.
If jQuery is enabled on the site, you could drop some jQuery into a snippet webpart on the library view page.
Something like this would do what you are looking for:
<script> if ($('.ms-tv-box').length) { $('.ms-core-sideNavBox-removeLeftMargin').find('div').first().hide(); } </script>
Edit: I should mention, this works on classic libraries, not modern. Added the word "conditionally".
Oct 25 2016 01:27 PM
Oct 25 2016 04:08 PM
Thanks, but when I try that, the Metadata navigation controls don't show up either.
Oct 25 2016 11:18 PM
You can try 'Remove-SPONavigationNode' using pnp powershell.
Remove-SPONavigationNode -Title spoapp1 -Location QuickLaunch -Header Teams