How to Create Custom Menu Item in Site Actions

The below sample feature creates new menu item in Site Actions menu, Please replace the GUID in the below code.

Sample Feature File

<?xml version=”1.0″ encoding=”utf-8″?>

<Feature

    Id=”<GUID>”

    Title=”Custom Menu Item”

    Description=” ”

    Version=”1.0.0.0″

    Scope=”Site”

    Hidden=”False” xmlns=”http://schemas.microsoft.com/sharepoint/”>

    <ElementManifests>

        <ElementManifest

            Location=”elements.xml” />

    </ElementManifests>

</Feature>

 

Sample Elements file

<?xml version=”1.0″ encoding=”utf-8″?>

<Elements xmlns=”http://schemas.microsoft.com/sharepoint/”>

<CustomAction Id=”"

                 GroupId=”SiteActions”

                 Location=”Microsoft.SharePoint.StandardMenu”

                 RequireSiteAdministrator=”TRUE”                

                 Title=”My Blog”

                 Description=” ”

                 Sequence=”1″>

<UrlAction Url=”http://www.mstechblogs.com/sharepoint “/>

</CustomAction>

</Elements>


Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>