Solved

Sharepoint 2010 - Quick Launch on new Web Part Pages

Posted on 2010-08-17
2
2,096 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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