Friday, January 07, 2011

Creating Web Part Pages with a Quick Launch

Web Part Pages in Team Sites by default do not show the Quick Launch left navigation. Basically the panel is hidden by a CSS style written into the page <head>:

<style type="text/css">
body #s4-leftpanel {
 display:none;
}
.s4-ca {
 margin-left:0px;
}
style>


and two placeholders in the <body>, which override the masterpage placeholders:

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



To show the Quick Launch open the page in SharePoint Designer and remove the style and the placeholders.

No comments:

Post a Comment