Tuesday, March 15, 2011

Show Quick Launch Menu on SP Web Part Pages

 

This is a very common requirement faced by almost every SharePoint Developer. I was in dilemma whether to put this post or not thus, kept in bay this topic for a while. Smile   Then today I finally decided to add this in to my blog posts.

When we create new web part pages, the page provides the option of adding new web parts inside the specified web part zones. When I tried to create such page with Quick Launch menu, I did not get any option to activate or add the Quick Launch menu by editing the page.

clip_image002

When we create new page, we select a page templates. SharePoint creates new page based on our selected page template and hides all other page elements that are not included in the selected page template. For SharePoint it is always the same page definition and master page, thus the basic structure is always there in the page. We can better understand this if we open the page in the SharePoint Designer. We could see many content place holders which are there in the page but are not visible when the page gets populated. The quick launch menu is placed inside the Place Holder Left Nav Bar (hover over the bottom left side, usually where the quick launch menu remains).

clip_image004

Click the pointer and select Default to Master’s Content

clip_image006

Would get this prompt, click YES

clip_image008

And you could see that the quick launch menu gets visible. Save the page and you are done.....

clip_image004[1]

If you have a more elegant solution – please post a comment… I’ll be happy to hear.

HaPpY CoDiNg... (Aurum)

2 comments:

  1. I have achieved this in a different way,
    1.Edit the new web part page in Designer
    2. Find these two lines in the code view




    3. Remove or Comment it.
    4. Save the page, refresh to see the effect..

    However Your method sounds nice..will give it try next time...

    ReplyDelete
  2. Opps Google remove those tag! :P.. here it is

    ContentPlaceHolderId="PlaceHolderLeftNavBar"
    ContentPlaceHolderId="PlaceHolderLeftNavBarSpacer"

    ReplyDelete