Display Quick Launch in SharePoint 2010 Web Part Page

If you create a Web Part Page, the Quick Launch is missing in general. In order to show the Quick Launch in SharePoint 2007, you had to delete or comment these tags

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

If you try this in SP 2010 you will be confused why the quick launch will not shown. There is a difference in the Web Part Page: Microsoft overrides the CSS Style with the following script block within the Web Part Page:

<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>

In order to get the Quick Launch, you have to delete or comment the block additional to commenting/deleting the PlaceHolder-Tags I mentioned above.

This entry was posted in Configuration, Design, Development, SharePoint 2010, Troubleshooting. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>