Customize Send To Menu

Posted on 2009-12-28
Last Modified: 2012-05-08
We currently have a need to add a custom menu item to the Send To menu within our document libraries that would allow a user to create a link to the currently selected list item within another library. When the user clicks on the new "Send Link to..." menu item, they should be prompted to browse to the library in which the link should be added. Once the user chooses a destination, the link, along with the metadata from the list item, should magically appear in the selected desitnation library. Once again, we only want a link, not a copy of the file. Is this possible to do?
Question by:shugt23
    LVL 16

    Expert Comment

    Possible to do, but not a out of box feature. You will need to code up a solution to do this.

    Author Comment

    Understood. I have found an article written by Mark Bower on how to customize the context menu (, but I am still in need of how to add the "meat" behind it. Can you point me to any resources that may be helpful?
    LVL 16

    Expert Comment

    Sorry, I am not a SharePoint WebPart/Feature/Solution developer so can't really provide you with any real "meat."

    However, what you are describing isn't going to be trivial to build. Just the document library picker/chooser is hard enough, but after that you are going to have to create a Document Link content type and then use the object model to copy over the metadata. The document library will have to be pre-setup to allow the document link content type and have matching fields. Since there are pre-reqs, I would suggest instead of using a generic document library picker (where the user can select any document library) you provide a predefined list of document libraries. This could be maintained via a SharePoint List.
    LVL 19

    Accepted Solution

    It is possible to do it. One drawback though, you can only add ONE thing to the Send To item, so if you use it for this functionality you will not be able to add anything else to the send to. You can of course add something to the menu list itself, without adding it to the send/to. That menu is called the editcontrolblock.

    Second thing to know is that those items (which are called custom actions) are only able to link to a certain page. So what you will need to do is create a custom application page that provides the functionality to select a list.

    How do you create a custom action?

    Make sure you check out the link to the code example as well, as there it is shown on how to add a property of the listitem that you selected the menu on to the querystring of the page that you need to build.

    How do you build a custom application page?
    LVL 19

    Assisted Solution

    Link copy failure

    How do you build a custom application page?

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
    Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now