O'Reilly logo

Microsoft® SharePoint® Designer 2010 Unleashed by Kathy Hughes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hiding the Site Actions Menu

In the following example, use the <SharePoint:SPSecurityTrimmedControl> control to hide the entire Site Actions menu from SharePoint pages. This is an ideal solution where you want to hide the Site Actions menu from all bar site owners. Perform the following steps to hide the entire Site Actions menu.

1. In the sample.master page, locate the following line of code:

<span class="ms-siteactionsmenu" id="siteactiontd">

2. Add a couple of carriage returns immediately above the line and then type the following:

<SharePoint:SPSecurityTrimmedControl runat="server" Permissions="ManageSubWebs">

SharePoint Designer automatically adds an equivalent closing tag when you type the > closing bracket on the opening tag. Delete the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required