Thursday, June 7, 2012

Using left navigation on a SharePoint Web Part Page

Standard Web Part Pages in SharePoint 2010, by default, don't have the left navigation bar visible, for some reason.  Not sure why yet.  But I found this post quite helpful for putting the navigation bar back.

http://blogs.technet.com/b/seanearp/archive/2011/03/09/how-to-create-a-sharepoint-2010-web-part-page-that-inherits-the-site-s-left-navigation.aspx

To automate the process a little, I added this line to my style sheet -

#s4-leftpanel { display:inherit; }

So all you need to do in SharePoint Designer is comment (or delete) the two content placeholders:

<asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content>

No comments:

Post a Comment