No Left Navigation when new web part pages are created in sharepoint

Creating web part pages or basic pages on the fly in sharepoint is pretty easy just with a click of a button
But here comes a little set back you won't get to see the left navigation menu when you view the page

But here comes a solution for this you will notice that the page's layout  and design are all inherited  from the master page
but the side navigation is not.

The cause i reckon is the left side navigation is defined in the Master Page in the "PlaceHolderLeftNavBar" content place holder and templates for Web Part Pages shipped with SharePoint are overriding this content place holder and delete its content. 

The solution for this is to change the page so it will not override the menu place holder, but inherite it from the Master Page. The place holders we are interested in are:
"PlaceHolderLeftNavBar" and "PlaceHolderNavSpacer". 


Start by opening the Sharepoint Designer

    Open the web part page you want to add the menu to. 
    In Code view - Look for the following lines and delete them:
      <asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content>
      and
      <asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content> 
     Save the file. You will get a warning saying you are about to customize the page .Just go ahead.
Hope that svaes time.

posted @ Sunday, September 23, 2007 7:17 PM

Print

Comments on this entry:

# re: No Left Navigation when new web part pages are created in sharepoint

Left by Jay Smith at 11/6/2007 6:52 PM
Gravatar
Great Info,

This is one of those key items that is strangely absent from many of the SharePoint books currently in the market place right now. Your post is worthy of more exposure. Keep up the great work!

Thanks,

Jay

# re: No Left Navigation when new web part pages are created in sharepoint

Left by New2Sharepoint at 2/27/2008 3:20 AM
Gravatar
Thank you so much. This was exactly what I was looking for. I did find, however, that there is a blank space in the upper left corner of the page. You can add a page by editing the following tag (I've inserted an image there):

<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"><img src="____________"> </img></asp:Content>

# re: No Left Navigation when new web part pages are created in sharepoint

Left by Kim Reaport at 4/22/2008 11:08 PM
Gravatar
Thanks for the help.

This is exactly what i'm looking for. :)

# re: No Left Navigation when new web part pages are created in sharepoint

Left by Brian Reeves at 4/23/2008 6:18 AM
Gravatar
This was the 90% solution I was looking for to customize my Web Part Pages...can someone also give me a similar quick fix to REMOVE the Web Part Page title area WITHOUT removing the Page Breadcrumb trail? I'm sure it is a similar 'delete this line' or 'modify css'. With these two Web Part Page corrections/modifications we can make these pages look just like the main team site pages with the added benefit of customized web part zone layouts...

Thanks!

# re: No Left Navigation when new web part pages are created in sharepoint

Left by Bruce Rhodes at 7/3/2008 1:10 AM
Gravatar
Great info!

And thanks for taking the time to share it!

# re: No Left Navigation when new web part pages are created in sharepoint

Left by Adrian Harris at 2/12/2009 11:11 PM
Gravatar
I don't have Sharepoint Designer or permission to alter the Master Page. Instead I:
1) created a new List page
2) Edited the page and deleted the List Web Part
3) Added a Content Editor Web Part.

I now have just what I want!
Cheers!
Adrian

# re: No Left Navigation when new web part pages are created in sharepoint

Left by Vikas at 3/19/2009 1:07 AM
Gravatar
Great info.

Thanks however I need a small problem still remaining...

When i create a basic page, title of the page shows as "Basic Page" rather than what I need.

Can anyone help me with this?

# re: No Left Navigation when new web part pages are created in sharepoint

Left by Pramod Sharma at 4/7/2009 2:32 PM
Gravatar
This is extraordinary stuff!
Thanks for bringing this up!
Saved lot of time

# re: No Left Navigation when new web part pages are created in sharepoint

Left by Brendan at 8/28/2009 3:39 PM
Gravatar
Thank for the help.

How would you remove these tags from the template. I want all my pages to inherit the side navigation. My "basic page" uses the template "/layouts/bpcf.aspx" but I do not see the lines listed in there. Is this information pulled from somewhere else?

Any help would be appreciated.

Your comment:



 (will not be displayed)


 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345