Skip to main content

Patrick Tisseghem's Blog [MVP SharePoint]

Go Search
U2U Blog Center
U2U website
  

The Happy SharePoint Traveller

U2U Blog Center > Patrick Tisseghem's Blog [MVP SharePoint] > Posts > Making the Quick Launch appear again on Web Part pages stored in a document library
Making the Quick Launch appear again on Web Part pages stored in a document library

I got an interesting question today here in the classroom. As you probably know, you can in WSS 3.0 create a document library and opt for the Web Part page template as the one sitting behind the New button.

The end result is that you can now create a bunch of aspx pages having each one based on a layout template and just store them in the document library.

Curiously, these pages follow the same master page as all of the other pages in this site but they do not display the Quick Launch.

 

One of the students asked me whether it is possible to have the Quick Launch displayed on these pages because users complained about it. Hey! When users are complaining, we need to solve their issues!

Looking closer into the problem, I noticed that these pages have an empty placeholder that actually overrides what is there in the default.master.

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

 

Open the page in the SharePoint Designer. If you remove this line, you'll have the Quick Launch again visible on the page.

You'll probably have to tweak the table a bit to set the proper width but the Quick Launch is again there! Happy users!

If I'll find the time, I'll work out a new layout template for the Web Part pages that has this by default so that you do not have to touch each of your pages you create this way.

Comments

Small things with great impact

It's these things that make SharePoint better and better.

I just wonder why they made the design choice in the first place :)
at 19/06/2007 10:49

Very useful post again!

I Particularly like the subject of your demosite :-)
at 19/06/2007 13:52

nice post

another useful tips!  thx!
at 19/06/2007 20:46

Tips like this is what we need Patrick

Welcome down-under, sorry about the temperature ;-)

I know you must get lots of these kinds of Q&A during your training sessions, please keep sharing for those of us not able to attend!
at 20/06/2007 1:04

So how DO I resize the table?

Did this. It worked exactly as you said, but I don't know how to resize the table for this page since it resides on the default master page. If I resize it there, it resizes it for ALL pages attached to the default master.

Ideas?
at 20/06/2007 21:11

So how DO I resize the table?

I'm having the same problem with resizing the table. Please advice.
at 10/07/2007 20:10

Rezise menu

Delete this placeholder and you'll have a menu wit the "good" width :

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


A simple way to don't have to do this manipulation on all your futurs pages is to modify the model at this place :
.\12\TEMPLATE\1036\STS\DOCTEMP\SMARTPGS\spstdX.aspx
at 20/07/2007 13:56

Add webpart pages template

Thanks for great pointer.

Does anyone know how to add webpart pages template beyond the eight out of the box e.g. ststd9.aspx?

It is easy to do this in SPS 2003.

Thanks.
at 16/08/2007 4:10

No Quick Launch in Web parts pages

Is there any good reason to have such a behavior? To me, It makes more sense to have a consistent layout. Or is it simply a "bug"?
at 22/08/2007 18:08

Seach page layout

Interesting article.

I am using SPS 2007 and noticed that the Search Center doesn't contain any menus at all. Once you're in there the only thing you can do is search, no menu options.

Would the same technique work for making the enterprise search feature work if various items were added to those pages?
at 24/10/2007 19:22

Template?

Funny how much users think alike.  I had the same request to add the quicklauch to basic and webpart pages, and was able to figure out the above hack and the table spacing, but I can not figure out how to "templatize" this page, so the users can create the same layout per the normal process (without me having to mod each page). 


Can anyone help!??
at 21/11/2007 18:06

Without Sharepoint designer?

Can this be down without Sharepoint Designer?
at 30/11/2007 17:41

Nice work!

Great fix, thanks. If there was only a way to make a template out of it...

In response to the last comment, I don't know of a way to edit the code of an individual page without SharePoint Designer, but you can edit the templates, which is described above. The path might not be the same. I went to the 12 hive and did a search for "spstd", which brought back the templates with GIFs of their corresponding formats.

- Ray
at 3/12/2007 23:13

Awesome :)

Great tip and saves a lot of time. Thank you :)
at 12/03/2008 15:55

make change to template NOT EACH page

here is how to make the change ONCE and not to every page you create.

Step One:

work on unghosted Masterpage (copy)

search for:

1) <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBar” runat=”server”>
{ this is all the code for the menu }
</asp:ContentPlaceHolder>

2) <asp:ContentPlaceHolder id=”PlaceHolderNavSpacer” runat=”server”>
{ this is all the code for the spacer image }
</asp:ContentPlaceholder>

STEP TWO:
Ok, now all have to do is to cut and paste (or drag) the closing tag before the code in {  }, so you leave the code opened (outside of the ContentPlaceHolder) which means accordingly that it will be viewed in all of the new created pages that reads from the master page..

So code will be something like this :
1) <asp:ContentPlaceHolder id=”PlaceHolderLeftNavBar” runat=”server”>
</asp:ContentPlaceHolder>
{ this is all the code for the menu }

B) <asp:ContentPlaceHolder id=”PlaceHolderNavSpacer” runat=”server”>
</asp:ContentPlaceholder>
{ this is all the code for the spacer image }

Now you will see the Quick Launch on every page you create automagically. Oh of course in WSS3 since you can't inherit Masterpages from Site to Site you'll have to make this change on the sites and subsites.  Or at least i can't figure out a way to make the change to the MP at the Top Level and have it trickle down!

Good Luck!

Also, you cannot just remove the above ContentPlaceHolders as they are required to render the page correctly!

I'll be posting this info on my company blog site as well.

for more info check out
http://www.springhouse.com
http://blog.springhouse.com  (currently down back back up soon, mar 12 2008)
at 13/03/2008 17:42

.

Can this be down without Sharepoint Designer?

Yes.
You can edit the pages here C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\STS\DOCTEMP\SMARTPGS

Skiltz
http://skiltzonnet.blogspot.com/
at 18/03/2008 21:51

Open only some links on Quick Launch in a new window.

Hi Folks
Im using WSS 3.0, I am trying to open some links in the quick launch bar in a new window. Do you know if this is possible.

Frustrated User
at 3/07/2008 10:49

Thank you!

This is an excellent tip - simple, powerful, well-stated.  Thank you, thank you so much!
at 10/07/2008 21:38

Just what I needed

Thank you. Great explanation
at 20/11/2008 14:29

Edit with Text Editor (No Designer Needed)

What a great post!!

I wanted to see how I could do this without Designer and my solution is simple.  Open the document library in Windows Explorer, change the extension to .txt, edit, save, and then change back to .aspx

You can read my post at www.bitsofsharepoint.com.

Thanks Patrick
at 10/01/2009 2:03

Edits with Text Editor

As Notepad doesn't work with Sharepoint (ActiveX issue - http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.sharepoint.portalserver&tid=6503b95c-703d-4bfc-a797-a9eebf25c59c&p=1), the best way to modify web page source is to download all pages (Send To -> Download a Copy) to a local machine, edit them and then upload them back.
at 4/03/2009 12:57

Re: Making the Quick Launch appear again on Web Part pages stored in a document library

Hello everybody,
your solution works great (thank you very much) but I want to find a way to edit it for all pages - without to edit each page!
Because the users should not have the chance to create a page without the quicklaunch.
Thank you in advance and best regards from Germany!

Matthias
at 5/05/2009 14:59
Captcha

Enter the code shown above: *

(Note: If you cannot read the numbers in the above
image, reload the page to generate a new one.)