In this Article, I am explaining with simple steps as how to create a New Item to Site Actions Menu using Custom Action
Follow the steps:
Create a New Empty Project in Visual Studio 2010
Rename the feature name
Go the Elements.xml file, Add <CustomAction tag element node
Declare the Title, Description, URL in URLAction
Add your ASPX file into Layouts folder
<UrlAction Url="~site/_layouts/ siteactionsample.aspx"/>
If you do not have any ASPX page, for testing you can give reference to any site URLAction
<UrlAction Url="http://www.google.com"/>
Save and Build and Deploy the Project
See the result by Clicking on the Site Actions Menu
<CustomAction
Id=””
Location=”Microsoft.SharePoint.StandardMenu”
Sequence=
Title=”My sample site”>
<UrlAction
Url=”~site/_layouts/siteactionsample.aspx” />
<CustomAction
Id=””
Location=”Microsoft.SharePoint.StandardMenu”
Sequence=
Title=”My sample site”>
<UrlAction
Url=”~site/_layouts/siteactionsample.aspx” />
No comments:
Post a Comment