Monday, December 26, 2011

How to add a new link to welcome drop down in Sharepoint

 In order to add a new link to the welcome dropdown, we should use custom actions.

Here is the feature.xml & element.xml


Feature.xml

<Feature
  Id="AA929AFF-4602-4d7f-A501-B80AC9A4BB52"
  Title="Add Links to user section"
  Description="Feature that adds a link to Welcome User section"
 Scope="WebApplication"
  xmlns="http://schemas.microsoft.com/sharepoint/">
  <ElementManifests>
    <ElementManifest Location="elements.xml" />
  </ElementManifests>
</Feature>


Elements.xml

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
      Id="0acdbd94-eba8-11db-8314-0800200c9a66"
      GroupId="PersonalActions"
      Location="Microsoft.SharePoint.StandardMenu"
      Sequence="100"
     
      Title="My Custom link Title"
      Description="My Custom link Description"
       >
    <UrlAction Url="_layouts/MycustomPage.aspx"/>
  </CustomAction>
 
</Elements>

No comments:

Post a Comment