Monday, February 11, 2013

TIP: Add Quicklaunch to a New Page

Introduction

When creating a new Web Part page in SharePoint 2007 or 2010, the Quick launch will not appear.  It's actually still there, but hidden in different ways, depending on the SharePoint version you are using. To get it back, just follow the procedure below, as appropriate to your SharePoint version.

Procedure
  1. SharePoint 2007
    1. Open the page in any text editor or Designer 2007.
    2. Search for these two lines:
    3. <asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer"
       runat="server"></asp:Content>
      <asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" 
      runat="server"></asp:Content>
      
    4. Delete them both.
    5. Save the page.
  2. SharePoint 2010
    1. Open the page in any text editor or Designer 2010.
    2. If using Designer, use Advanced Mode.
    3. Remove the following code/css:
    4. <sharepoint:uiversionedcontent id="WebPartPageHideQLStyles"
        runat="server" uiversion="4">
        <contenttemplate>
          <style type="text/css">
            body #s4-leftpanel {
              display:none;
              }
            .s4-ca {
              margin-left:0px;
              }
          </style>
        </contenttemplate>
      </sharepoint:uiversionedcontent>
      
    5. Remove the following ASP.NET placeholder:
    6. <asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar"
       runat="server"></asp:Content>
      
    7. Save the page.
References

No comments: