SharePoint and Quick Launch
A quick post on how to modify the appearance of the QuickLaunch bar in SharePoint (WSS v3, SharePoint Server 2007)
One of the most common questions I am asked when demonstrating SharePoint to customers is how to modify the Quick Launch navigation bar. In particular, people want to remove the 'View All Site Content' option to prevent users from seeing the underlying site structure. See screenshot below:
If you wanted to remove 'View All Site Content' from all sites and pages, you would need to modify the underlying templates being used to build the navigation. But if you just want to remove the option from a single site or page, there is a quick and easy method using SharePoint Designer 2007.
- Within the SharePoint site, click on the Site Actions button in the top-right corner of the page (see screenshot above).
- Under Galleries, click on Master Pages (Master Pages are page templates that contain elements common to the site)
- In the Master Pages Gallery, hover over the default.master page and click the arrow to display its Edit menu (see screenshot below)

- Select Edit in Microsoft Office SharePoint Designer (SharePoint Dersigner will open with the default.master page displayed)
- Click on the 'View All Site Content' placeholder. In the Tag Properties, under group Behaviour, select the 'Visible' property and change it from True to False (see screenshot below)

- Click 'Save' to save the default.master page template.
- Refresh the site in your browser and the Quick Launch navigation bar should no longer show the option to 'View All Site Content' (see screenshot below)

Naturally, if you are working with live deployments of SharePoint, make sure you test any changes and are happy with the results before applying them to the production environment.
[Update: 28 August 2007] Please check the Comments section for a simple alternative method that does not require SharePoint Designer (i.e. just Notepad will do). Many thanks to Ulrich for sharing.
Technorati tags: SharePoint, SharePoint 2007, MOSS 2007


10 Comments:
Or you can go even more native and checkout the default.master and then download a copy and edit the line with id="idNavLinkViewAll" and add Visible="false"
That is if you are like me and do not have the famous Sharepoint editor.
This worked great, thanks a lot.
I worked on this solution long back and it worked great. Thanks.
But, in the past I deleted this control.. rather than making it invisible.
Now, I want this option to be visible again.
Any suggestions ?..
I tried Copy+Pasting this control using Designer from other SP pages, but its not working.
Require some assistance.
Hello Harsha
I just tried deleting the control and then putting it back in again and it worked fine. (Did this in SharePoint Designer.)
If you are using SharePoint Designer, you need to insert the following code directly after the control 'SharePoint:EncodedLiteral' (displayed within H3 tags). I took out the entire control, check first as you may have only removed the DIV element.
Code for 'View All Site Content': (I have replaced opening and closing tags < > with square brackets [ ] to keep Blogger happy. You'll need to change them back for the code to work)
[Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ViewFormPages"]
[div class="ms-quicklaunchheader"][SharePoint:SPLinkButton id="idNavLinkViewAll" runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" Text="[%$Resources:wss,quiklnch_allcontent%]" AccessKey="[%$Resources:wss,quiklnch_allcontent_AK%>"/][/div]
[/SharePoint:SPSecurityTrimmedControl]
Alternatively, if you used check-in/out when you modified the master page, you could just restore the original version which should still have the control intact... Go to the library and view the version history. You can restore any previous version to replace the current one.
Good luck and let me know how you get on.
Hi Folks,
I'm working with SharePoint designer, and I'm trying to remove the red bullets. Does anybody know how to do this? I've read articles and researched all three of the cascading style sheets (specifically: Bell1011-65001.css, mossExtension.css, and theme.css...all within the the virtual directory into _themes/Belltown), and tried commenting out the bullets via /* */ and there appear to be no changes made to the Quick Launch.
I commented out everything with "bullet" in it and it's still there!? Rather confusing, so does anybody have insight as to why my commenting out changes of the red bullets are not folowing through?
In addition, I commented out everything with bullet in it on the core.css, and the same thing happened.
Thank you for your time,
SEAN
Hi Sean
I am assuming
a) You do not want to replace the bullet points with anything else
- and -
b) you want the change applied to every single site based on the default team site template?
In which case, forget modifying the individual style sheets in any virtual directories. The one you want is CORE.CSS
And you need the correct copy of CORE.CSS. Located in (assuming default install) - c:\program files\common files\microsoft shared\web server extensions\12\template\layouts\1033\styles
(a lot of people miss the 1033 directory)
Assuming a previously unaltered CORE.CSS, you need to remove lines 821 and 841
Line 821 = background-image:url("/_layouts/images/navBullet.gif");
Line 841 = background-image:url("/_layouts/images/SELECTEDNAV.GIF");
There are a bunch of other lines referencing the two images - by all means remove those too, but taking out the above two lines killed the red bullets on my MOSS demo. I deleted them completely rather than just commenting out.
Do that, and your red bullets will be gone. Permanently. Forever. For all sites...
Make sure you take a back up of your CORE.CSS first.
Also, always document any changes made to CORE.CSS. You'll probably need to reapply them after a service pack. CORE.CSS is one of the core files in MOSS (clue is in the title, I guess). Not to be tampered with lightly but hard to ignore because it renders after all other style sheets when the page converted to HTML in the browser.
Let me know if that helps or doesn't.
All the best
Sharon.
p.s. I collect links and tips relating to SharePoint and WCM (including working with .CSS) at http://www.joiningdots.net/library/Elements/Microsoft/shp-wcm.html
Hi,
I want to remove 'View All Site Content' from all sites and pages. Can you please guide me as to how i can change the underlying templates. I am not getting any link for it.
Thanks & Regards,
Priyanka Kadam
Hi Priyanka
I'm not surprised you're struggling to find info about modifying the core templates. Any such document should come with a hazardous warning stamped all over it. Changing the core templates can risk the stability of the entire platform.
The safest way to mass implement a removal of the 'View all site content' link would be to create your own site template based on one of the cores. Modify it to remove the link and then apply the modified template across all sites. This could be done by deploying as a feature. (If you've never come across 'features', try searching on 'SharePoint' and 'feature'. It's a daft choice of name and confuses the hell out of most people, but it's the method for activating/deactivating functionality on a site or site collection basis.)
Hope that helps a little.
Iwant to move the contents of the quick launch to the Top link bar. how do I do that?
Post a Comment
Links to this post:
Create a Link
<< Home