Sunday, February 7, 2010

Left Navigation & Webpart Pages

Sharepoint 2010 webpart pages dont show the left navigation by default

http://jetlounge.net/blogs/teched/archive/2009/01/12/quick-launch-bar-navigation-missing-from-web-part-pages-in-sharepoint.aspx

http://www.beyondweblogs.com/post/Quick-Launch-Navigation-missing-from-SharePoint-Web-part-page.aspx
Solution provided in these link didn't work however some research & persistence did it all - we found the solution-
1. There is this tag which needs to be deleted or commented (this one hides the left nav)
<SharePoint:UIVersionedContent ID="WebPartPageHideQLStyles" UIVersion="4" runat="server">
<contenttemplate>
<style type="text/css">
body #s4-leftpanel {
display:none;
}
.s4-ca {
margin-left:0px;
}
</style>
</ContentTemplate>
</SharePoint:UIVersionedContent>

2. Delete only this tag as this is what overrides the default nav coming from the master page.
<asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content>
3. Leave this tag as it is, if this is deleted(as said in other posts) it leaves a blank row on top the left nav which is not what you would want.
<asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content>

Happy SharePointing!

3 comments:

  1. Finally someone who knows what he is doing ! Thank you, you made my day. Works as advertised. -Iko

    ReplyDelete
    Replies
    1. I am glad this information helped you .. a little late .. nevermind! :)

      Delete
  2. How about modifying template files in \TEMPLATE\1033\STS\DOCTEMP\SMARTPGS folder ?

    ReplyDelete