Add Custom Menus using CustomAction

on Tuesday, November 3, 2009

Following are few examples of how to add a new menu to EditControlBlock,SiteSettings Gallary,SiteActions menu.

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="NewEditItemMenu"
    RegistrationType="List"
    RegistrationId="101"
    Location="EditControlBlock"
    Sequence="106"
    Title="MY ECB ITEM">
    <UrlAction Url="/_layouts/viewlsts.aspx"/>
  </CustomAction>

  <CustomAction
   Id="NewSiteSettingsGallary"
   GroupId="Galleries"
   Location="Microsoft.SharePoint.SiteSettings"
   Sequence="106"
   Title="MY ECB ITEM">
    <UrlAction Url="/_layouts/viewlsts.aspx"/>
  </CustomAction>

  <CustomAction
   Id="NewSiteActionsMenu"
   GroupId="SiteActions"
   Location="Microsoft.SharePoint.StandardMenu"
   Sequence="106"
   Title="MY ECB ITEM">
    <UrlAction Url="/_layouts/viewlsts.aspx"/>
  </CustomAction>


</Elements>

Using ControlAssembly to Add New Menus to any GroupId

Check my other blogpost

0 comments: