This SharePoint tutorial we will discuss, how to implement PromotedActions Delegate Control in SharePoint 2013.
PromotedActions Delegate Control is responsible for displaying Links “Share, Follow, SYNC, EDIT” in the 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.
Implement Custom Promoted Actions Delegate Control in SharePoint 2013
Follow below steps to implement custom promoted actions delegate control in SharePoint 2013.
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 the 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 element’s tag
<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!– DelegateControl reference to the PromotedActions Delegate Control –> <Control ControlSrc="/_controltemplates/15/PromotedActionsDelegate_Example/MyCustomPromotedActionsDelegate.ascx" Id="PromotedActions" Sequence="1" /> </Elements>
The final step is to build and deploy then adding an additional link.
The final Outcome will be look as follows:
You may like following SharePoint tutorials:
- Working with Promoted Links App in SharePoint 2013/2016/Online
- Enable promoted links app in SharePoint 2013 publishing site
- Add navigation link in site settings navigation page SharePoint 2013 using Visual Studio 2013
- New Delegate Control additions to the SharePoint 2013
- Delegate Controls in SharePoint 2013 using Visual Studio 2013
- Implement Custom SuiteLinks Delegate Control in SharePoint 2013
- SharePoint_Config (Suspect) issue in SharePoint 2019/2016/2013
Hope this SharePoint tutorial helps to implement custom promoted actions delegate control in SharePoint 2013.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)