Create a Custom Action in Site Action\Settings menu in SharePoint 2013
Please note that the Out-of-Box Option to create a Subsite is available in Site Contents menu.See detail How to Create a SubSite in SharePoint 2013.
To Create a Custom Action for "Settings" menu you would need the following -
- Visual Studio 2012
- Visual Studio 2012 tools for SharePoint
Step 1 - Create a New Empty project.

Step 2 - Add a Url of your SharePoint site and select deploy as Farm solution.

Step 3 - Once the project is Created Add a new item "Empty Element".

Create an Empty Element.

Paste the following in the Elements file.
<?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 Site"
Description="Create Site Link" >
<UrlAction Url="~site/_layouts/15/newsbweb.aspx"/>
</CustomAction>
</Elements>
Step 4 - Verify if the element file is added to the Feature.

Step 5 - Next Run the Project.

Press OK if you get the below screen.

SharePoint will open the site with the URL you provided. Verify that the Settings menu has a Create Site link.

6 comments:
Great! Works! Thanks a lot!
great man
keep goin
www.donya.ps
Awesome! Tired of "Search and Rescue" to find Subsite.
Stephan Onisick
Hi,
I ask you if I can add a custom action to the settings menu and how ?
Hey Good article for SharePoint beginner. I am a beginner in SharePoint and have just signed up for free SharePoint 2013 hosting solutions with https://www.cloudappsportal.com/
Sir, What change i have to do if i want to bring that "create site" link to quick launch /left navigation area..?
Post a Comment