Creating a Actions Menu for a particular List in Sharepoint


1.gif 

The folder structure should be like this.

2.gif
 
The solution is created by using the ListTemplate. Following are the file required as shown above.

1) Feature.xml

<?xml version="1.0" encoding="utf-8" ?>
<Feature
Id="76927D6A-AC93-436b-9193-B65AC76D7088"
Title="Custom List Action Menu."
Description="Custom List Action Menu."
Scope="Site"
xmlns="http://schemas.microsoft.com/sharepoint/">
  <ElementManifests>
    <ElementManifest Location="Elements.xml" />
  </ElementManifests>
</Feature>

2)Elements.xml

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <ListTemplate
  Name="Lists\CustomListAction"
  Type="1111"
  Category="Custom Lists"
  CacheSchema="TRUE"
  BaseType="0"
  OnQuickLaunch="TRUE"
  Hidden="FALSE"
  HiddenList="FALSE"
  Sequence="500"
  SecurityBits="11"
  DisplayName="CustomListAction."
  Image="/_layouts/images/word.jpg"/>
  <CustomAction
  Id="SY.Custom.Menu"
  Title="Export to word."
  Description="Click here to export list data to word document."
  RegistrationType="List"
  RegistrationId="1111"
  GroupId="ActionsMenu"
  Location="Microsoft.SharePoint.StandardMenu"
  ImageUrl="/_layouts/images/msword_export.jpg"
  Sequence="300">
    <UrlAction Url="/_layouts/ExportWord.aspx"/>
  </CustomAction>
</Elements>

3.gif

Make sure that both Ids are the same because you are activating for a particular list.

Up Next
    Ebook Download
    View all
    Learn
    View all