Sometimes you have SharePoint lists or sites where you want to hide the Left hand navigation bar commonly called the Quick Launch. For instance it’s common that people want their News or Announcement lists that the visitor only have read access to, to only show all the news items and not the Quick Launch. Usually, if you have set the permissions correctly this is not a problem from an security point of view because of the Security trimming SharePoint have but it might look better.

There is a verry easy way to hide the Quick Launch if you only want to do this on or two pages.

This is how you do:

1. Go to the site or list where you want to hide the Quick Launch.

2. Go to Site Settings and select Edit Page

3. Add a Content Editor Web Part to any of your Web Part Zones (This web part will be hidden so it doesn’t matter where you put it).

AddWebPart

4. Make sure that you select the Hidden attribute for the Web Part and the click on Source Editor…

EditContentEditorWebPart

5. A little bit depending on if it’s on a site, what kind of list, theme and if you have any custom styles on your site the below code could change but it will work in most cases and I will describe how you find make it work in case it doesn’t.
Copy the below code and past it in the Source editor

<style>

.ms-pagetitleareaframe
{
display: none;
}
.ms-navframe
{
display: none;
}
.ms-titleareaframe
{
display: none;
}
</style>

HideQuickLaunchCode

6. Click Save and then Ok in the Web Part Settings frame and finally exit the Editing Mode

7. You should now have a page that does not show the Quick Launch and we have done this by overriding the style sheet. If parts of the navigation is still showing you need to override more attributes and to know which ones I recommend you to use the IE Developer Toolbar.

This IE plugin from Microsoft makes it easy to click on an object on a web site and show what attributes or classes it is using. If you are using IE 6 or 7 you can download it from here: http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

And if you are running IE 8 which is default in Windows 7 you have it already built in, how to use it can be found here:
http://msdn.microsoft.com/sv-se/library/dd565628(en-us,VS.85).aspx



  1. [...] SharePoint Blog Post From SharePoint Security – Google Blog Search: Usually, if you have set the permissions correctly this is not a problem from an security point [...]



Subscribe without commenting