B i t s O f S h a r e P o i n t C o n s u l t i n g L L C > B l o g P o i n t > Posts > Site Navigation - Quick launch in Webpart Pages (Continued)
Site Navigation - Quick launch in Webpart Pages (Continued)
OK, so I have found a good solution that worked for for MOSS, but does NOT work for WSS 3.0.  So Off I went to see what I could find.  And I found a great article by Patrick Tisseghem's: http://www.u2u.info/Blogs/Patrick/Lists/Posts/Post.aspx?ID=1744.
 
He did a great job outlining how to get the quick launch on the page.  His solution requires that you have SharePoint Designer.  I wanted to see if we could do this without Designer.  for the average "information worker" they do not have Designer.
 
After reading Patrick's post it became simple that all that was needed was to delete a couple of lines in the webpart page.  These lines to be exact:
 
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content>
 
Well deleting lines only take Note Pad and the find function.  So could we open the web part page in note pad.  I went to the document library.  I first looked to see what the default editor was for .aspx files, yep you guessed it, SharePoint Designer (strike one).  So I then decided that I will change the extension so wen to edit the Properties and what I found is that SharePoint does NOT allow you to edit the extension of file like you can in windows explore (strike two).  But wait that is the answer. 
 
Open the document library in windows explorer and then change the extension to .txt, make your changes and then put the extension .aspx back.  And we know we can open the library in windows explorer.
 
Go to the document library, click Actions and then click Open with Windows Explorer.   Now you can:
  • Change extension to .txt
  • Edit in Note Pad
  • Delete the following lines:
    • <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"></asp:Content>
      <asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content>
      <asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content>
  • Save the document
  • Change the extension to .aspx
  • Close Windows Explorer and open your update page with the quick launch.

Worked great.

 

Comments

Want Clarification

Thanks peter ! great post .
But what i want to know is : Are you trying to open the master page in txt format and then change the tags or you are trying to open the newly created web part page which is saved in the document library. I think the newly created page will not contain the place holder tags as they are part of master page. Is there any way i can change the individual pages so that the changes are not reflected in the whole site.

thanks in advance
Ajit
www.sharepointkings.com
at 1/16/2009 12:03 AM

Clarification

Ajit,

The answer is yes you can edit just the web part page that you just created.  Then only that page will have the quick Launch.

The trick is which are going to have more of, Quick Launch viewable or not viewable.   

If only on a few pages then just edit the page and take out the code above.

If most pages should have it then follow the steps above and for the pages you do NOT want the Quick Launch then add CEWP and add this code in:

<style>
.ms-quicklaunch
{
display:none;
}
.ms-navframe
{
display: none;
}
</style>

Hope this helps.

Peter
Peter Allen at 1/16/2009 1:11 AM

No need to change file extension

Hey,
If you open the document library in windows explorer, you do not need to change file extension.

You can just do "Open With" notepad and do desired changes.

Ravi
at 2/24/2009 3:53 PM

Re: Site Navigation - Quick launch in Webpart Pages (Continued)

Goog point.
Peter Allen at 2/24/2009 4:41 PM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Addition: 2 + 1 = *


Please complete this equation.

Email


This is optional.
Attachments

 T o p i c P o i n t

 E x a m p l e P o i n t