To Create a Custom
Action for “Settings” menu you would need the following
·
Visual Studio 2012
·
Visual Studio 2012 tools for SharePoint
Once
you have Installed these lets look at the Steps.
I. Open Visual Studio 2012.
ii. Go to File => New =>Project.
iii. Select Empty SharePoint project template from the installed template
SharePoint => 2012.
iv. Enter the Name and click OK.
v. Check the option "Deploy as a Sandbox solution".
vi. Click Ok.
vii. Right click on the solution and select "Add a new item".
viii. Select Empty Element template, enter the Name and click Ok.
ix. In the Elements.xml replace the code with the following.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="CreateSite"
GroupId="SiteActions"
Location="Microsoft.SharePoint.StandardMenu"
Sequence="2000"
Title="Create New Site"
Description="Create Site Link" >
<UrlAction Url="~site/_layouts/15/newsbweb.aspx"/>
</CustomAction>
</Elements>
x. Go to the
SharePoint site where you have deployed your solution.
xi. Go to Site Actions, you will see last option for Create New Site.