.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Implement Custom Promoted ActionsDelegate Control In SharePoint 2013

Posted By:Sagar Pardeshi       Posted Date: January 28, 2016    Points: 200    Category: SharePoint    URL: http://www.dotnetspark.com  

In this article you will learn how to implement Custom Promoted ActionsDelegate Control in SharePoint 2013.
 

Introduction 

In this article we will see how to implement PromotedActionsDelegate Control.

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.

newsfeed

Step 1:

Create one Empty SharePoint Project and provide the Solution Name and choose the Solution Path and click on OK.

Step 2:

Deploy the Solution as Farm Solution. Provide the Url in next screen and validate the Connection.

Step 3:

Add New UserControl to the Project from the Templates and provide the Name to it, in our case it is "MyCustomPromotedActionsDelegate".

MyCustomPromotedActionsDelegate

Now our Solution Explorer looks as in the following,

Solution

Step 4:

Now open the ".ascx" of the User Control and paste the following code.

ascx

Step 5:

Add Elements.xml file to the Solution, provide the name and click on Add.

Elements

Step 6:

Click on elements.xml file and paste the following code snippet inside the elements tag,

  1. <?xmlversion="1.0"encoding="utf-8"?>  
  2.     <Elementsxmlns="http://schemas.microsoft.com/sharepoint/">  
  3.   
  4.         <!-- DelegateControl reference to the PromotedActions Delegate Control -->  
  5.         <ControlControlSrc="/_controltemplates/15/PromotedActionsDelegate_Example/MyCustomPromotedActionsDelegate.ascx" Id="PromotedActions" Sequence="1" />  
  6.   
  7.         </Elements>  
  8.   </Elements>  
Step 7:

Final step is to build, deploy and then ad additional link.

The final outcome will look as follows,

Outcome

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend