I am creating a custom SharePoint 2010 master page. I am basing it off of the v4.master. As part of the customization, I would like to hide the "Libraries" part, Discussions, Recycle bin. I would like to display only custom types in the Lists section. Is there a "best practice" to do it? I tried using different content areas on my new master page, to no avail. Also, is there a way to create links for anchor tags that would have relative URLs and reference my custom types?
|
|
Things like Libraries and Discussions can be removed from the Left Navigation via the Quick Launch menu in Site Settings. That doesn't have to be stripped out of the master page. The base masterpage I'm using on my site has the View All Site Content residing in the Site Actions button with the Recycle Bin not being existant. I'm using the starter masterpages from Codeplex. To hide the view all site content and recycle bin, you want to look for this and put it into the hidden asp panel:
|
|||
|
|
|
If you are looking for a way to have some minor design changes globally applied to SharePoint site I don't recommend messing with masterpage. Most of the branding can be done simply by overriding default Simply create custom css file, include in it some styles for override, upload it to Style Library and then add your custom css file as Alternate CSS URL (Site Settings > Site Master Page Settings). Example: For hiding Recycle Bin add to your custom css file:
Don't touch masterpage if you are not 100% sure you know what are you doing. I also don't recommend using some starter or blank masterpage (at least for beginners). Much better way is to start with standard SharePoint masterpage and then apply changes by adding and/or removing content. |
|||
|
|
|
To dictate what shows in the Lists, Libraries, and Discussions section you can simply go to List > List Settings > General Settings and set Display this list on the Quick Launch? accordingly. If you want to delete those sections altogether then you need to dig into the markup a little deeper and hide thise links/sections...can get into more detail if ncessary To hide the Recylce bin and View All Content links is simple:
Just find that tag and add Visible="false" |
|||
|
|
How to Hide or Remove the Quick Launch in SharePoint 2010 working Solutions for me: /–Hide Quick Launch –/ s4-leftpanel{display:none } .s4-ca{ margin-left:0px } Copy above code and past it in your master page on above to hide Hide or Remove the Quick Launch in SharePoint 2010
For More Info: http://virtualizesharepoint.com/2011/03/31/removing-the-left-hand-navigation-in-sharepoint-2010/ |
|||
|
|

