Skip to main content

Posts

Showing posts with the label SharePoint

Blogs

Here is a list of the blogs that I follow. Big part of being SharePoint person is reading the right articles! Apps for Office and SharePoint Blog MicrosoftSharePoint Team Blog Wictor Wilén Andrew Connell Spencer Harbar Waldek Mastykarz Radi Atanasov

Custom Item in 'Sned To' menu

In my previous post I show how to put some javascript to all pages in a site collection using the delegate control. This is pretty common scenario and the approach with the AdditionalPageHead control works great. In this post I will use again the approach to solve another issue. The scenario:  Add a custom item in the ‘Send To’ section in the contextual menu for document.  The solution: Overwriting the default javascript function in core.js. The javascript function renders the new idem. A delegate control is used to bring the customizations on the pages in a particular web.  Code Sample: download from here Explanations: In such tasks the most normal approach will be using a custom action which most difficult part is to find the correct value for the Location property. The problem in our scenario is the fact that the Send To menu items are rendered only by javascript. There is no way to use custom action for it so the only option is to find a w...