..:: I like SharePoint ::.. Rotating Header Image

Sharepoint: Display Quicklaunch in a Webpart Page

I came to the point that i want to create some webpart pages inside of a SharePoint Site. Not that difficult: You just click the create button and choose blank webpart page. But the created webpart page does not show the quicklaunch bar. It displays nothing on the left side.

In the eyes of a normal user this would break all rules of guidelines for websites or intranets. So how could this gap be closed?

There are some possibilities:

1) Use the Content Editor Webpart and insert some javascript code -> watch this instructions

2) Use SharePoint Designer or Visual Studio and create your own Page Layouts

3) Edit the created webpart page

I think there might be some more options. Option 1) is possible, but you have to insert the javascript code in each webpart page, you have to test it and it might be a performance issue. Option 2 is a good way, but in big SharePoint farms you might don’t have SharePoint Designer respective Visual Studio. Option 3 is an easy going way without using SharePoint Designer or Visual Studio and you don’t need to use javascript.

At first create your webpart page and save it to a library like documents or whatever you like. Go to this library and copy this file to your local pc or choose edit with Notepad++.

In this .aspx file you only have to delete this line:

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

This line overrides the quicklaunch bar normally.

This works fine with SharePoint 2007. If you are using SharePoint 2010, you better watch these instructions. In this case you have to work with CSS.

If you know a better solution for this, please let me know.

..:: I LIKE SHAREPOINT ::..

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

Karsten Pohnke About Karsten Pohnke
He is Consultant for SharePoint Solutions for collaboration, communication and business processes. He provides his customers applications based on standard features as well as development or combining the power of several microsoft tools like Dynamics CRM. In his free time he tries to collect tipps and worthy experience in this blog.

Leave a Reply

Your email address will not be published. Required fields are marked *


three × = twenty seven

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>