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 -

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 -

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.

Code:

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.
http://msdn.microsoft.com/library/en-us/odc_SP2003_ta/html/sharepoint_creatingcustomwpptemplates.asp

Thanks to DragonflySusan for the help with this one.
Another good source of help is Partick Boom -http://patrickboom.wordpress.com/2010/04/16/how-to-add-the-quick-launch-to-the-default-web-part-page-templates/
and Adam Macaulay -http://www.endusersharepoint.com/EUSP2010/2010/06/04/navigating-sharepoint-2010-part-2-the-quick-launch/



Source: http://blog.mattsampson.net/index.php/quick-launch-on-new-web-part-pages?blog=1

Comments