Friday, 5 September 2008

WSS3.0: Enable quicklaunch on webpart pages

The idea:

When you create a new Web Part Page within SharePoint 3.0 (Site Settings >
Create > Web Part Page) the Quick Launch Bar does not appear.
This to me is silly, because you spend time creating a nice menu, but it
doesn't appear on all pages.

So to ensure the Quick Launch Bar appears on all pages, including any newly
created Web Part pages, you need to open the SharePoint 3.0 site in
SharePoint Designer, open the Master Page and locate these 2 Content
Placeholders.


runat="server">"CODE"

For the record, you have a Master Page and you have many Content Pages.
Now the way it works as I see it, the Master Page has all the Quick Launch
code nestled in these content placeholders, and the Quick Launch is only
visible to the Content Pages which ask it to be visible.

You could go and manipulate the actual Web Part Page (which is already
created) and force it to show the Quick Launch Bar, but what happens when a
non-technical user goes and creates a new Web Part Page? They will have to
call the developer and ask them to manipulate the page to get the Quick
Launch to show up, which is not a good plan.

My plan was to manipulate the Master Page and force the Quick Launch Bar to
show up on every page. Even new Web Part Pages (that get created by
non-technical users).

So hereĆ¢€™s what I did:
Find the Quick Launch CODE that is nestled within the first Content
Placeholder stated above. Now find the Closing Content Placeholder Tag for
this CODE and move it to the top of the Quicklaunch CODE. So the Content
place holder will look like

runat="server">

And the Quick Launch CODE is outside of the Content Placeholder tags. This
now forces the Quick Launch to show up on every page. Bloody simple aye.

You are not quite finished yet because the Quick Launch width shrinks a
little bit and the words wrap to the next line.
So now find the second content Placeholder stated above, and do the same
thing as you did for the previous CODE.

NOTE:
DO NOT delete the Content Placeholders, as they are still needed to render
(load) the page. The page will error if they are deleted.

I have not encountered any issues in doing this yet, but remember, when
using SharePoint designer you can always revert to the original Master Page
if things go pear shaped.

Ref : http://www.eggheadcafe.com/software/aspnet/29440009/show-quick-launch-on-webp.aspx

No comments: