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.

About Karsten Schneider 312 Articles
Consultant for Microsoft 365 Applications with a strong focus in Teams, SharePoint Online, OneDrive for Business as well as PowerPlatform with PowerApps, Flow and PowerBI. I provide Workshops for Governance & Security in Office 365 and Development of Solutions in the area of Collaboration and Teamwork based on Microsoft 365 and Azure Cloud Solutions. In his free time he tries to collect tipps and worthy experience in this blog.

Be the first to comment

Leave a Reply

Your email address will not be published.


*