Solved

Sharepoint 2010 - Quick Launch on new Web Part Pages

Posted on 2010-08-17
2
2,109 Views
Last Modified: 2012-05-10
I want the Quick Launch (left navigation) to always appear on all new Web Part pages that are created  I have tried changing the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\1033\STS\DOCTEMP\SMARTPGS\SPSTD1 thru SPSTD8 to remove the run at server commands.   This is not working.  
0
Comment
Question by:DragonflySusan
  • 2
2 Comments
 

Accepted Solution

by:
DragonflySusan earned 0 total points
ID: 33455033
Here is how you change the entire farm to default the Quick Launch Navigation on Web Part Pages.
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 the following lines of code -

<SharePoint:UIVersionedContent ID="WebPartPageHideQLStyles" UIVersion="4" runat="server">
  <ContentTemplate>
<style type="text/css">
body #s4-leftpanel {
 display:none;
}
.s4-ca {
 margin-left:0px;
}
</style>
  </ContentTemplate>
 </SharePoint:UIVersionedContent>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.
0
 

Author Comment

by:DragonflySusan
ID: 33456347
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 the following lines of code -

<SharePoint:UIVersionedContent ID="WebPartPageHideQLStyles" UIVersion="4" runat="server">
  <ContentTemplate>
<style type="text/css">
body #s4-leftpanel {
 display:none;
}
.s4-ca {
 margin-left:0px;
}
</style>
  </ContentTemplate>
 </SharePoint:UIVersionedContent>

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.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now