Patrick.O.Ige

.Net,Sharepoint(WSS v3), Sql Server 2005,SSRS etc..

  Home  |   Contact  |   Syndication    |   Login
  49 Posts | 5 Stories | 75 Comments | 0 Trackbacks

News

Article Categories

Archives

Post Categories

Image Galleries

Ajax

Blogs I read

LINQ

Misc

Reporting Services

Sharepoint Resources/Tools

SQL Server

SSIS

WorkFlows

WSS V3

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 on Sunday, September 23, 2007 7:17 PM

Feedback

# re: No Left Navigation when new web part pages are created in sharepoint 11/6/2007 6:52 PM Jay Smith
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 1/30/2008 9:06 PM Umesh
HI

There is another simplest way is override the class .ms-nav like this

<style>
.ms-nav{
display: none;
}
</style>

Override this class under <HEAD> Tag of your master page.

Cheers!

# re: No Left Navigation when new web part pages are created in sharepoint 2/27/2008 3:20 AM New2Sharepoint
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 4/22/2008 11:08 PM Kim Reaport
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 4/23/2008 6:18 AM Brian Reeves
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 7/3/2008 1:10 AM Bruce Rhodes
Great info!

And thanks for taking the time to share it!

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 1 and 1 and type the answer here: