[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

Customize Send To Menu

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?
0
shugt23
Asked:
shugt23
  • 2
  • 2
2 Solutions
 
quihongCommented:
Possible to do, but not a out of box feature. You will need to code up a solution to do this.
0
 
shugt23Author Commented:
Understood. I have found an article written by Mark Bower on how to customize the context menu (http://blogs.msdn.com/bowerm/articles/175691.aspx), 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?
0
 
quihongCommented:
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.
0
 
MsShadowCommented:
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?
http://blog.thekid.me.uk/archive/2007/06/23/sample-editcontrolblock-customaction-for-sharepoint.aspx

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?
http://blog.thekid.me.uk/archive/2007/06/23/sample-editcontrolblock-customaction-for-sharepoint.aspx
0
 
MsShadowCommented:
Link copy failure

How do you build a custom application page?
http://msdn.microsoft.com/en-us/library/bb418732.aspx
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now