Thursday, October 2, 2008

Add new feature in personal menu

Here is a feature.xml and elements.xml that can add new menu in the person menu item.

<Feature Id="50E6274F-668C-4f5f-AC85-7DE468957230" Title="My site" Description="My site"
Version="1.0.0.0" Scope="Web" xmlns="http://schemas.microsoft.com/sharepoint/"
ReceiverAssembly="trushar.trushar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b44e792107d2d835"
ReceiverClass="trushar.trushar.trushar"
>

<ElementManifests>
<ElementManifest Location="elements.xml"/>
</ElementManifests>
</Feature>


<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="PersonalActionsMenu_MyMenu" GroupId="PersonalActions"
Location="Microsoft.SharePoint.StandardMenu" Sequence="101"
Title="My Menu"
Description="My Menu"
ImageUrl="_layouts/images/menuprofile.gif" >
<UrlAction Url="~site/_layouts/test.aspx"/>
</CustomAction>
</Elements>