Foros‎ > ‎Sharepoint‎ > ‎

Quick Launch on new Web Part Pages

publicado a la‎(s)‎ 17 oct. 2013 16:46 por Ignacio Gonzalez

Here is how you change the entire farm to default the Quick Launch Navigation on.

1. On your SharePoint server, go to the 14 hive (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\).

2. Navigate to the document templates of the site definition for the sites currently deployed in your SharePoint environment. In this article, we are referencing the English Team Site definition (C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\1033\STS\DOCTEMP\).

3. Open the folder SMARTPGS. Here there are 8 aspx pages and one htm page. Notice that the order of the aspx pages, matches the order found in New Web Part Page form in SharePoint. For example spstd1.aspx maps to the page layout Full Page, Vertical and spstd2.aspx maps to the page layout Header, Left Column, Body and so on.

4. Open the aspx page you want to always display the Quick Lauch Bar on, in Notepad.exe or VisualStudio 2008. 
Search for, and delete (or comment out) the following lines of code -


SharePoint:UIVersionedContent ID="WebPartPageHideQLStyles" UIVersion="4" runat="server">
<style type="text/css">
body #s4-leftpanel {
.s4-ca {

Search for, and delete the following lines of code -


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

Save the file.

Repeat step 4 for each Web Part Page layout you want to display the Quick Launch Bar on.

5. All future created Web Part Pages will now show the Quick Launch Bar.


To Comment out, use this syntax.
<%-- .....  --%>

When looking for the correct page to edit, here are the file names and what pages they actually are!

spstd1.aspx -> Full Page, Vertical
spstd3.aspx -> Header, Left Column, Body
spstd4.aspx -> Header, Right Column, Body
spstd2.aspx -> Header, Footer, 3 Columns
spstd5.aspx -> Header, Footer, 2 Columns, 4 Rows
spstd6.aspx -> Header, Footer, 4 Columns, Top Row
spstd7.aspx -> Left Column, Header, Footer, Top Row, 3 Columns
spstd8.aspx -> Right Column, Header, Footer, Top Row, 3 Columns

If you want to edit the templates more dramatically, then read the MSDN page on the subject.

Thanks to DragonflySusan for the help with this one.
Another good source of help is Partick Boom -
and Adam Macaulay -