Wednesday, July 17, 2013

Create a new Web Part Page with Quick Launch menu

This post is about a simple task we do daily in SharePoint 2010, creating a new Web Part page. Every time we need a new Web Part page, we go to All Site Content > Create > Web Part Page > Create. Now we have a Web Part page but no quick launch menu on the left.

To show the quick launch menu on the new created page:

  • Open the page for editing in SharePoint 2010.
  • Switch to the Code view.
  • Click on the Advanced Mode button on the ribbon.
  • Now look for the following code snippet and delete it.

<SharePoint:UIVersionedContent ID="WebPartPageHideQLStyles" UIVersion="4"runat="server">
<ContentTemplate>
body # {s4-leftpanel
display: none;
}
. s4 {ca-
margin-left: 0px;
}
</ style>
</ ContentTemplate>
</ SharePoint: UIVersionedContent>

  • Now look for the following snippet and delete it.

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

  • Save and Close

Now when you open the page, the quick launch navigation will be there.