Remove "Download a Copy" submenu RRS feed

  • Question

  • Hi: Is there any possibility to remove "Download a Copy" submenu of "Send To" menu without modifying core.js?


    - Deepak

    • Moved by Mike Walsh FIN Monday, March 22, 2010 7:09 AM customization q (From:SharePoint - Development and Programming (pre-SharePoint 2010))
    • Moved by Mike Walsh FIN Monday, March 22, 2010 7:09 AM customization q (From:SharePoint - Development and Programming (pre-SharePoint 2010))
    Monday, March 22, 2010 6:00 AM


All replies

  • There is no direct way to remove/disable any menu from ECS menus, but you can use work around as given below, coding is on you! I will explain only concept, hope this will help you for fixing the problem.

    1. when ever list is loaded the default aspx file which is used is allItems.aspx

    2. when you write any customization it is available for your all views.

    3. fect of JavaScript is overloading/hide the function which is loaded previously, if you create new function with same name.

    here is the solution.

    in your 'allitems.aspx' rewrite the funtion (of core.js) which is responsible to add 'Download a copy', and copy most of the code from original code, but remove or comment the code of specific menu, and you will see the effects in your list.

    now you need to find out the method which is responsible to add 'Send to' menu.. and you will be retady to rock and roll.

    hope this will help the community as well.


    Regards, Vikas Patel.
    Monday, March 22, 2010 6:22 AM
  • I dont think changing the core.js is a microsoft certified procedure.......

    An alternative would be overriding the above said javascript function in the page where the list view web part is displayed (e.g. AllItems.aspx).

    This would be a little tedious as you would have to override the javascript function in all the pages if you have multiple views created.....


    Huzefa Mala

    Monday, March 22, 2010 3:00 PM
  • Normally it not recommended to modify core.js as per SharePoint Best Practice, but if you still want to remove from core.js then see following article


    or you can directly remove/hide "Send To" by adding following script in Content Editor Web Part

    <script language="javascript">
    function AddSendSubMenu(m,ctx)
    return false;

    Ashish Kanoongo, MCP, MCSD, MCTS
    Monday, March 22, 2010 3:54 PM