Override "Email a Page link" in ribbon button functionality in SharePoint 2013

Hi,
I want to override "Email a Page link" ribbon button functionality on the ribbon control.
  <CustomAction Id="Ribbon.WikiPageTab.Share.EmailPageLink"
                Location="CommandUI.Ribbon"                
                Title="Custom Email this page">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.WikiPageTab.Share.EmailPageLink">
          <Group
          Id="Ribbon.WikiPageTab.Share"
          Sequence="30"
          Command="ShareGroup"
          Description=""
          Title="$Resources:core,cui_GrpShare;"
          Image32by32Popup="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32PopupTop="-137" Image32by32PopupLeft="-103"
          Template="Ribbon.Templates.Flexible2"
          >
            <Controls Id="Ribbon.WikiPageTab.Share.Controls">
              <Button
                Id="Ribbon.WikiPageTab.Share.EmailPageLink"
                Sequence="10"
                Command="CustomEmailPageUrl"
                Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png?rev=23" Image16by16Top="-115" Image16by16Left="-19"
                Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32Top="-137" Image32by32Left="-511"
                LabelText="$Resources:core,cui_ButEmailLink;"
                ToolTipTitle="$Resources:core,cui_ButEmailLink;"
                ToolTipDescription="$Resources:core,cui_STT_ButEmailLinkPage;"
                TemplateAlias="o1"
               />
            </Controls>
              </Group>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="CustomEmailPageUrl" CommandAction="javascript:alert('Hello, world');" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
Any help would be appreciated.
Rajasekar A.C

Hi,
According to your post, my understanding is that you wanted to override the “E-mail a Link” button on the Ribbon.
I had created a simple demo to override the “E-mail a Link” button on the Ribbon, you can have a look at it.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="Ribbon.Library.Actions.OverrideEmailLinkButton" Location="CommandUI.Ribbon" RegistrationId="101" RegistrationType="List" Title="Display the UniqueId for the list item.">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Library.Share.EmailLibraryLink">
<Button Id="Ribbon.Library.Share.EmailLibraryLink.ReplacementButton" Command="ReplacementButtonCommand" Image16by16="http://s10.postimage.org/lhar0oijp/U16.png" Image32by32="http://s17.postimage.org/trf3y2ui3/U32.png" LabelText="Replaced Button" TemplateAlias="o2" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="ReplacementButtonCommand" CommandAction="javascript:alert('This button has been replaced.');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>
More reference:http://msdn.microsoft.com/en-us/library/office/ff407619(v=office.14).aspx
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support

Similar Messages

  • Email This Page Link

    I'm using the JavaScript code below for creating an "Email
    This Page" link,
    but it doesn't work for a dynamic page that has more than one
    variable. For
    example, if the URL is
    http://www.thispage.com/page.asp?id=123&color=red
    it
    does not grab the whole URL. It only captures
    http://www.thispage.com/page.asp?id=123
    in the email (leaving out color).
    How can I get the email link to capture the entire URL for a
    dynamic page
    instead of cutting it off at the "&"?
    <script language="JavaScript" type="text/javascript">
    <!--
    document.write("<a
    href=\"mailto:?subject=SUBJECT&body=");
    document.write(window.location);
    document.write("\">Email This Page</a>");
    //--></script>
    Brandon
    http://www.presentationsdirect.com

    Just found an article called
    ASP:
    How to Get the Current Page URL
    If this works, you´d probably just have to replace the
    current
    document.write(window.location);
    with
    document.write(' <% response.write(curPageURL() & "?"
    & Request.ServerVariables("QUERY_STRING")) %> ');
    using the function that´s explained in the article.
    Works ?

  • List View WebPart custom XSL link disabled Ribbon Buttons

    Hi,
    I have added and external XSLT file for my List View web part. I followed these options in browser -> Edit page -> Edit web part -> Under Miscellaneous updated XSL Link.
    I am using this xslt file to add background colors to one of my column. The xslt is getting applied correctly. But I noticed that "View Item" and "Edit Item" option in ribbon is disabled. I removed the xslt link and ribbon worked fine.
    I have added the xslt file to site collection's "Style Library -> XSL Style Sheets" folder.
    When I added same xslt by editing the page in SPD 2010, everything worked fine. The problem appears only when I apply it externally. I found in few posts where they suggest to upload the xsl file in LAYOUTS folder. But I donot have access/permission to change
    the LayOuts folder. I donot want to edit in SPD because, it will be difficult for non technical administrators to apply xslt to other views/pages. Please suggest.
    - Thanks
    Lucky
    India

    I am facing the same issue. Is this issue resolved?

  • Navigation from OnePage to Another Page in MS Visio chart added in SharePoint 2013 Site

    Dear All,
    I have made Org Chart in MS Visio 2013 including multiple pages (sheets) & hyperlink provided to navigate from one page to another after clicking on particular box/Icon.
    In Ms Visio, its working properly but when i have added this in SharePoint site then when clicking on hyper linked Box then instead of navigating to another page , it is downloading files.
    Kindly let me know what should be done.

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    How do you upload the Visio file to SharePoint 2013? Upload the whole file directly or use the Visio 2013 build-in feature to save as to SharePoint site.
    Which file format do you use? VSDX or VWD format (Visio Web Drawing)
    Which browsers do you use?
    If you did not use VWD format, I recommend you try to
    save diagrams to SharePoint as Web drawings, we are using Visio Services to make the diagram available for people to view in a browser. Web drawings can have hyperlinks, multiple pages, and other features like a standard Visio drawing, including the
    ability to connect to external data sources. (Based on my test, the method worked well for me, it would navigate hyperlink correctly among different pages)
    Then, if we can navigate hyperlink correctly, and it becomes ”downloading mode“. This issue may be caused by the browsers add-ins. Please try to disable all the add-ins to test.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How display attachment links in a list view in SharePoint 2013?

    Hi all,
    I'm looking for a way to display attachment links in a list in SharePoint 2013. There are few resources online to achieve this in SP2010 and SP07. Your help is much appreciated.
    Thank you.

    Hi Ram Sampath:
    You can use Event Receiver and create another list(ListA) to record your attachment link.
    Maybe your process is:
    Users add list items and attachments
    List event will be fired
    Use Event Receiver to get attachment url and then Write into ListA
    You also can refer to the following web site:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b693eb84-b846-4f0f-93c1-276cf931c746/how-to-get-attachment-in-itemadded-event-receiver
    http://stackoverflow.com/questions/19077770/how-to-retrieve-list-item-attachments-with-sharepoint-2013-event-receiver-in-cor

  • How to set master page for Wildcard inclusion Managed path in Sharepoint 2013

    I am using sharepoint 2013. I created mysite in root level for newsfeed. Also i included wildcard inclusion managed path named as
    my. If i am clicking newsfeed the page url is http://webapplication:port/
    if  i am clicking sites the page url is http://webapplication:port/my/CURRENTUSERNAME/Social/Sites.aspx#IsEditing_WPQ4=1.
    I can apply master page for newsfeed site using sharepoint designer. But i cant apply for
    my path.
    If am opening http://webapplication:port/my/vijay in designer i can change the master page. But my requirement is to apply master page for http://webapplication:port/my
    for all users have same master page.
    How to solve this . Thanks in advance.

    You need to update the mysitehost masterpage. all master pages are created as mysitehost template.
    Here is how you do it. 
    Create a site collection with template as mysitehost
    Modify the mysitehost masterpage
    Once it is done, update the mysitehost in user profile service application
    If this helped you resolve your issue, please mark it Answered

  • How can I Hide/ Disable the Question mark and Exit button in the Top right corner of Link Bar of Excel Documents in SharePoint 2013?

    Hi,
    How can we  Hide / Disable the Help(?) and Close(x) buttons which are located in the right corner of the Top Link Bar in the Sharepoint Document Library pages as well as Excel Web Access?
    Our requirement is : When we try to view the Excel Services Report from another web site, Help(?) and Close(x) icons are also appearing in the Excel Web Access Web Part, but we don't want to display them in our site.
    Please let us know the solution for this case.
    Thanks in advance.
    Regards,
    Sanjana

    Hi,
    In the xlviewer.aspx, we can find the two buttons like this:
    To hide them, you need to add the CSS into the xlviewer.aspx which stays in:
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Adding links( page links) dynamically under tabs in masterpage SharePoint 2010

    Hi
    I've site which contain master page where I have Tab1, tab2, tab3.
    I want to add a link (link to pages) dynamically under aspmenu  tab1,tab2 or tab3 based on requirement without editing the master page.
    Is there any approach for ex.. if I am adding the links details in SharePoint list it will automatically needs to add that links under Tabs.
    Please let me know if there is any approach.
    Thanks,
    Sans

    Please follow the link below to create navigation.
    http://office.microsoft.com/en-us/sharepoint-server-help/configure-the-top-link-bar-for-site-navigation-HA102105259.aspx
    As you mentioned you are using tabs for menus, you will need to customize the default naivgation control to use your own CSS. for customization see the link below.
    http://sharepoint.rackspace.com/branding-top-navigation-in-sharepoint-2013

  • How to disable sending email to manager while deletion of my site in SharePoint 2013?

    I believe there is a cleaning job is for disabled and employee who are left i want to disable the alert which is sending to their manager for the deletion of the site that site will be deleted in 3 days. How can we disable this email alert.

    The job you are looking for is called the MySite Cleanup Job.  It is a timer job, so you can disable the whole thing.  But that would disable processing of MySites for deleted users entirely, not just the email alert.  Unfortunately, there
    is no way to disable just the alert.  So you either need to disable the whole timer job or let the alert be sent.
    Also, just to clarify.  By default the timer job deletes mysites after 14 days (not 3) and only does this for users missing from a profile import ( which is normally only users deleted from AD not user disabled in AD).  You can filter out disabled
    users also, but it requires adding a filter to the profile import connection.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Create ribbon button to launch my webpage in office 365 content pane application using napa tool for sharepoint

    Hi ,
    I have created Excel content pane application in office 365 using NAPA tool for SharePoint,so  here  i need to launch my page through the ribbon button instead of directly loading .
    please provide me some samples how to get ribbon for office 365 content pane application and on click of ribbon how to interact the page through the ribbon.
    Thanks
    Lokesh

    Actually i want to Create Custom Ribbon  for office 365 with the help of napa tool, without use of Visual studio 2013. 
    Please provide me a sample or help regarding to create Office 365 ribbon using "NAPA"
    Thanks
    Abhishek

  • Controls in ITEM and LIST tabs of Ribbon disabled always in Punishing SharePoint 2013 site if i add list to home page as List View Webpart

    Hi,
    Below is the scenario,
    If i created any custom list and navigating to the list (AllItems.aspx) and on selecting the item, i can see controls in ITEM and LIST tabs of Ribbon are enabled in SharePoint 2013 publishing site.
    If i add the same list in the home page (add web part --> select list view webpart) in the publishing site, on selecting of item, all controls in ITEM and LIST tabs of Ribbon are disabled always.
    Please help me to fix this issue ASAP.
    Regards,
    Krishna

    Hi,
    Thanks for your reply.
    Ribbon controls (only ITEM and LIST tab) still in disabled mode even if i selected the item in the list view webpart.
    Also, i have noticed the below things,
    when i create a published site (default page : default.aspx) and add the list view webpart in the default page, the controls are in disabled mode on selecting item in list view webpart.
    when i create a team site (default page : home.aspx) and add the list view webpart in the default page, the controls are in enable mode on selecting item in list view webpart.
    Please help me on this.
    Regards,
    Krishna

  • Button or checkbox to start a workflow in sharepoint 2013

    In my first project for SharePoint 2013, I want a workflow to be manually started by the user due to the way I am using the default buttons generated by SharePoint 2013.
    I would like the user manually be able to start a workflow by doing one of the following:
    1. click a button, or
    2. click a check box, or
    3. select an option button.
    Thus can you tell me how to 'wire together', connect one of the options I listed above to start a workflow manually?

    Midnight,
    THIS IS HOW WORKFLOW CAN BE STARTED MANUALLY
    Create a multiple value radio button column and name it WFStart
    Create a SPD workflow on item add and edit autometically
    Check WFStart value at to as Workflow start condition.
    If Yes, proceed with next stage
    If no stop the workflow
    See this link: Workflow
    conditions in SharePoint Designer : A quick reference guide
    Idea is to start workflow every time but only proceed when radio button column (WFStart) value if yes. No code implementation!
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Linking a nav button to page + other

    I have 2 questions
    1. I had found somewhere that tells the simple way to link my
    flash button to a page in my site, but I couldn't find it...I need
    to know how to link my buttons to the appropriate pages. When I did
    them a while ago, nothing happened suring the preview.
    2. When I get all of the buttons linked, how do I go about
    getting the html of my flash header I edited to use in my
    sitebuilder?
    Thanks if you could help.

    Give your button an instance name of myBtn1 then put the
    following
    actionscript on frame one of your main timeline:
    myBtn1.onRelease = function(){
    getURL("yourPage.html");
    do the same for the other buttons within your Flash, but give
    them all
    unique names.
    Dan Mode
    ->Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "daynad" <[email protected]> wrote in
    message
    news:epmf1c$euf$[email protected]..
    >I have 2 questions
    > 1. I had found somewhere that tells the simple way to
    link my flash button
    > to
    > a page in my site, but I couldn't find it...I need to
    know how to link my
    > buttons to the appropriate pages. When I did them a
    while ago, nothing
    > happened suring the preview.
    >
    > 2. When I get all of the buttons linked, how do I go
    about getting the
    > html
    > of my flash header I edited to use in my sitebuilder?
    >
    > Thanks if you could help.
    >

  • When I click on a link in an email, it does not automatically open the site page? When I receive an email with a link in it, if I click on the link to open the page, nothing happens. It does not open the internet to that page.

    When I click on a link in an email, it does not automatically open the site page?
    When I receive an email with a link in it, if I click on the link to open the page, nothing happens. It does not open the internet to that page.

    I don't appear to have a toolbar either.

  • After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    Type '''about:config''' in the Location (address) bar and press the "Enter" key. When you see a warning, click '''I'll be careful, I promise!''' button.
    * Preferences that have been modified are shown as '''bold (user set)'''.
    * Preferences can be '''Reset to the default''' or changed via the right-click context menu.
    -> In the '''Filter bar''', type '''browser.sessionhistory.max_entries'''
    * Right click the preference '''browser.sessionhistory.max_entries''' and click '''Modify'''
    * Change value from 0 to whatever you want over 0 (Default value is 50)
    * click OK
    -> Close the '''about:config''' tab and then Restart Firefox.
    See this post:
    * https://support.mozilla.com/en-US/questions/860894#answer-229574
    Check and tell if its working.

Maybe you are looking for