In this article we will see how to implement PromotedActions Delegate Control in SharePoint 2013.
PromotedActions: Delegate Control is responsible for displaying Links “Share, Follow, SYNC, EDIT” in top right below SuiteLinksDelegate Control. These links can be replaced by Overriding PromotedActions Delegate Control using a Custom Control created using Visual Studio to the following area on a SharePoint site in the top-right section of the page.
Read some SharePoint online tutorials:
Create One Empty SharePoint Project and Provide the Solution Name and Choose the Solution Path and Click on OK.
Deploy the Solution as Farm Solution. Provide the Url in next Screen and validate the Connection.
Add New UserControl to the Project from the Templates and Provide the Name to it, in our case it is “MyCustomPromotedActionsDelegate”
Now Our Solution Explorer looks as follows,
Now open the “.ascx” of the User Control and paste the following code
Add Elements.xml file to the Solution, Provide the name and click on Add.
Click on elements.xml file paste the below code snippet inside the elements tag
<?xml version=”1.0″ encoding=”utf-8″?>
<!– DelegateControl reference to the PromotedActions Delegate Control –>
Final step is build and deploy then adding an additional link.
The final Outcome will be look as follows:
Hope this will be helpful.