http://sharepointpromag.com/sharepoint/four-ways-add-or-remove-quick-launch-menu-control
The 4 options were all great.
However, what I ended up doing was a combination of Option 1 and 2. Which could really be documented as an option 5 approach.
In the site, I disabled the quick launch (Option 1). This result in it not showing but the area to the left is still a blank block of space.
Then I simply created a copy of the master page that I have been using and called it MyMaster_ForNoLeftMenu
I then also copied our main css file and added
/* Suppress Left Menu space after turn off Quick Navigation and Tree view at site level settings*/
#s4-leftpanel {
display:none;
}
.s4-ca {
margin-left:0px!important;
}
Saved it as myCssNoLeftMenu.css in the Style Library library folder.
In the master page I simply changed the reference to the css registration to the css file with the left hide above
<SharePoint:CSSRegistration name="/Style Library/css/myCssNoLeftMenu.css" after="corev4.css" runat="server"/>
Now to control this, simply set the site's master page to MyMaster_ForNoLeftMenu after disabling the need to show the quick launch in the site settings.
No comments:
Post a Comment