Saturday, 10 January 2015

Custom Site Action Settings Menu 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
Once you have Installed these lets look at the Steps.

Steps Involved:

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. 






No comments:

Post a Comment

SharePoint tenant opt-out for modern lists is retiring in 2019

We're making some changes to how environments can opt out of modern lists in SharePoint. Starting April 1, 2019, we're going to be...