My Techie Blog

  Home  |   Contact  |   Syndication    |   Login
  110 Posts | 5 Stories | 406 Comments | 0 Trackbacks

News

Article Categories

Archives

Post Categories

ADO.NET

Ajax

API/WebServices

ASP.NET Resources

BizTalk Server

Blogs I read

Free Books

How to

iOT

JavaScript

JQuery

JSLink - SharePoint

JSON

LINQ

Misc

Mobile BI

MS Business Inteliigence

Reporting Services

Responsive/MVC ASP.NET

SEO

Sharepoint Resources/Tools

SharePoint 2010 Branding

SharePoint 2010 Videos

SharePoint 2013

SharePoint Online

SilverLight

SPServices

SQL Server

Sql Server 2012

SSIS

Web Optimization Tools

Web Performace Tools

Windows 8

Windows Azure

Windows Azure

Windows Phone

WorkFlows

WSS V3

xml

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 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!

# re: No Left Navigation when new web part pages are created in sharepoint 2/12/2009 11:11 PM Adrian Harris
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 3/19/2009 1:07 AM Vikas
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 4/7/2009 2:32 PM Pramod Sharma
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 8/28/2009 3:39 PM Brendan
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.

# re: No Left Navigation when new web part pages are created in sharepoint 11/17/2009 12:13 PM CK
YYYYYEEEEEEEEEEESSSSSSSSS!!!!

this is great, thanks!

# re: No Left Navigation when new web part pages are created in sharepoint 1/15/2010 1:48 PM ED
Thanks! Just what I needed

# re: No Left Navigation when new web part pages are created in sharepoint 3/17/2010 9:00 AM Fabian P
Thanks. An easy and fast solution. I don't have SharePoint Designer due to company policies. I downloaded the aspx page to my documents, opened it in notepad to delete those towo lines, and uploaded it back to SP. Took less than two minutes. (Guess that fastest than what SD takes to load, lol )

# re: No Left Navigation when new web part pages are created in sharepoint 4/14/2010 2:48 AM Gaurav Rai Infosys
The good part with WebParts in Doc Library is you can restrict the access & with this suggestion, it completes the functionality.. atleast in my case.. Good stuff !!

# re: No Left Navigation when new web part pages are created in sharepoint 5/18/2010 4:05 AM Philip Abbott
Thanks for this solution, proved invaluable....

# re: No Left Navigation when new web part pages are created in sharepoint 5/21/2010 1:47 PM Karen Tausher
I have the same problem in 2010 but your fix didn't seem to fix it - have you tried this in 2010?

# re: No Left Navigation when new web part pages are created in sharepoint 5/22/2010 9:45 AM Patrick
Hi karen,
I haven't come across it in 2010:(

# re: No Left Navigation when new web part pages are created in sharepoint 6/2/2010 2:27 PM flash game programming
That is a wonderfully structed blog and the content is just awesome. I will get all my family soon to read your lovely posts altogether.

# re: No Left Navigation when new web part pages are created in sharepoint 7/4/2010 11:06 PM Sai
I had modified the site using the sharepoint designer but from the users login i can still view the left navigation area. How to remove it from the user settings

# re: No Left Navigation when new web part pages are created in sharepoint 7/13/2010 12:11 PM Chris
Worked great! Thank you.

# re: No Left Navigation when new web part pages are created in sharepoint 7/14/2010 8:39 AM Katie
I have this post saved in my favorites and have been using it for about a year. Works perfect every time! Thanks!!

# re: No Left Navigation when new web part pages are created in sharepoint 8/5/2010 8:36 AM Quantum Leaper
This is exactly what I was looking for!!!! Thanks so much for posting!!!

# re: No Left Navigation when new web part pages are created in sharepoint 9/20/2010 5:43 PM Santhosh
hi,
how to make the change ONCE and not to every page

# re: No Left Navigation when new web part pages are created in sharepoint 9/30/2010 2:53 AM shaky_dawg
to make this change for all new basic pages, modify bpstd.aspx in \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\1033\STS\DOCTEMP\BLANKPGS

# re: No Left Navigation when new web part pages are created in sharepoint 10/12/2010 2:45 AM elorg
Nice! I had always just made a copy of the default.aspx page in my Doc Library and ran with that. It's nice to have options - I'll be keeping this one in mind.

Thanks!

# re: No Left Navigation when new web part pages are created in sharepoint 10/13/2010 2:57 AM Itolz
Great! It save me a lot of time!!

# re: No Left Navigation when new web part pages are created in sharepoint 2/16/2011 12:58 AM cbcon
It works for me in WSS 3 but not in SP 2010. Is there a way do achieve the same in SP 2010?

# re: No Left Navigation when new web part pages are created in sharepoint 3/3/2011 8:45 AM Sri J
Just copy the defualt.aspx and past it in Shared Documents (rename if you like) and access the page

# re: No Left Navigation when new web part pages are created in sharepoint 3/3/2011 10:31 PM Dst
There is an additional style element that needs to be removed in sharepoint 2010.

http://dstructr-devtips.blogspot.com/2011/03/custom-web-part-pages-with-navigation.html

# re: No Left Navigation when new web part pages are created in sharepoint 3/30/2011 9:57 PM Amine
For Sp 2010 must delete this too

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


# removing-the-left-hand-navigation-in-sharepoint-2010 3/31/2011 8:52 AM vSharePoint
I found another way to do this:
http://virtualizesharepoint.com/2011/03/31/removing-the-left-hand-navigation-in-sharepoint-2010/


# re: No Left Navigation when new web part pages are created in sharepoint 3/31/2011 9:10 PM L Brown
Adrian Harris your suggestion has saved me as like you, I don't have permissions to change anything on master pages and the company won't invest in Sharepoint Designer. Thanks very much, a great solution for what has been an annoying problem!

# re: No Left Navigation when new web part pages are created in sharepoint 4/26/2011 6:26 PM Master of all Knowledge
None of the above for sp2010!

Just create a normal page (i.e. not a web part page) and then use the ribbon to add web parts.

Do this and you will have the side and top nav menus automatically, no fuss!

# re: No Left Navigation when new web part pages are created in sharepoint 4/27/2011 1:39 AM jj
Thanks.

It always amazes me how people manage to make simple things so complicated.

# re: No Left Navigation when new web part pages are created in sharepoint 5/10/2011 6:54 AM Ben Black
Try this fix:
http://toastedcode.nfshost.com/2011/05/add-left-navigation-quick-launch-to-web-part-pages-in-sharepoint-2010/

# re: No Left Navigation when new web part pages are created in sharepoint 6/14/2011 5:13 PM saggii
cool man

# re: No Left Navigation when new web part pages are created in sharepoint 7/11/2011 9:47 AM JennE
This worked perfectly, thank you so much!!

# re: No Left Navigation when new web part pages are created in sharepoint 7/11/2011 11:59 AM Cheyna
awesome. thanks!

# re: No Left Navigation when new web part pages are created in sharepoint 7/26/2011 8:11 AM ash
hI,
i tried as you said above but i didn't get left navigation on web part page.

Please let me know how to rersolvbe it.

# re: No Left Navigation when new web part pages are created in sharepoint 11/17/2011 4:27 AM CAR
Works like a charm!! thanks!!!!

# re: No Left Navigation when new web part pages are created in sharepoint 11/23/2011 9:55 PM Daniel
Hi this was a real live saver as I persuaded my client to drop the MPWS Site template which does enables quick nav bar for (workspace) pages

I performed the steps below in sp2010 then cloned the site via template:

open each page in advanced mode open

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>

also delete this

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

# re: No Left Navigation when new web part pages are created in sharepoint 11/27/2011 9:30 PM Rajesh
Thanks for the great info.!

# re: No Left Navigation when new web part pages are created in sharepoint 12/21/2011 2:57 AM Michael Clark
Brilliant! This has been annoying me for 2 days, thanks for posting :)

# re: No Left Navigation when new web part pages are created in sharepoint 2/2/2012 12:43 PM Kathy Anderson
Works like a charm. Is there a way to do this to the "Basic Web Part" page master? or do you have to customize this each time you create one of these pages?

I'm using WSS3.0

# re: No Left Navigation when new web part pages are created in sharepoint 4/17/2012 2:31 AM venu
Excellent :-), time saver.

# re: No Left Navigation when new web part pages are created in sharepoint 7/23/2012 8:49 AM laks
This is awesome man! works great! Lot of other sites gave the change in lot of file but this one was a instant fix...

# re: No Left Navigation when new web part pages are created in sharepoint 5/23/2013 12:10 AM Nitin
Thanks Amine for your post on 3/30/2011 9:57 PM
It really helped me while working on sp 2010.


# re: No Left Navigation when new web part pages are created in sharepoint 10/6/2013 11:24 PM Pedrol
width sharepoint designer 2013 you should remove the lines:
<style type="text/css">
.s4-ca {
margin-left:0px;
}
</style>



# re: No Left Navigation when new web part pages are created in sharepoint 5/29/2015 11:39 AM Nidhi
This works great! Thank you!

# Left Natigation 11/13/2015 7:12 AM Ruthe
This keeps saving me at work. Thank you!

Post A Comment
Title:
Name:
Email:
Comment:
Verification: