Data Cogs Information Technology

posts - 137, comments - 144, trackbacks - 42

We covered the new WSS feature framework in a I was teaching last week.  Using features you can item menu items to the Site Actions menu.  It seems in all the example the menu will show up for all users.  Someone asked “How do you restrict it so that the menu item only shows up for Site Administrators?”

I wasn't sure but after a bit of hunting I found this article that had the answer:

http://sharepointsolutions.blogspot.com/2006/10/quick-site-settings-adding-sub-menus_16.html

 

 All you need to do is add the RequireSiteAdministrator=”TRUE” attribute as in the following example:

 

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <CustomAction
       Id="SiteActionsSubMenuCustomizer"
       RequireSiteAdministrator="TRUE"
       GroupId="SiteActions"
       Location="Microsoft.SharePoint.StandardMenu"
       ControlAssembly="SiteActionsSubMenuDemo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e9db3057acd9c0f6"
       ControlClass="SiteActionsSubMenuDemo.SiteActionsSubMenuCustomizer" >
   </CustomAction>
 </Elements>

posted on Sunday, March 25, 2007 10:04 PM

Feedback

# re: Adding a menu item using WSS feature framework that is only visible to Site Administrators

If you are looking for the replica watch and information about it, you came to the right place.
1/3/2008 7:11 AM | Replica Watch

Post Comment

Title  
Name  
Url
Comment   
Protected by Clearscreen.SharpHIPEnter the code you see: