Ask a questionAsk a question
 

QuestionSend To Other Location not available for web part pages?

  • Friday, November 06, 2009 9:43 PMDan Blaker Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I've got a document library which contains, among other things, a couple web part pages (i.e., with .aspx extensions). In the context menu for most of the documents in the library, I get a choice to Send To Other Location, where I can enter a URL of a destination document library. The process works perfectly for most of the documents. For the web part pages, however, the "Other Location" option is missing from the "Send To" submenu. Is this a bug or as designed, or is it a problem with my particular site? The source document library in this case is in a Team Site, and the destination document library is in a Publishing Site.

    Thanks,

    DGB

All Replies

  • Friday, November 06, 2009 11:12 PMDan Blaker Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    I found the answer to my question in the core.js code (i.e., the JavaScript code that's loaded for every SharePoint page). In the function AddSendSubMenu, the section that displays the "Other Location" option contains the following conditional statement:

    if (currentItemProgId !="SharePoint.WebPartPage.Document" 
      && (serverFileRedirect==null || serverFileRedirect=="" || HasRights(0x0, 0x20)) 
      && strExtension !="aspx")
    

    Which basically says that it will only display the "Other Location" or custom send to destination if the item is not a web part page and doesn't use the "aspx" extension.

    So I guess my question is now... WHY?

    And and also, how should I do this? What's a good way to easily send a web part page from one document library to another? My goal here is to keep the working drafts of a web page in a collaborative site, where a limited number of people will have access to review the page and comment on it; then when the page is ready to publish, easily send it to a destination library on a publishing site where everybody in the company can view it.
    • Edited byDan Blaker Friday, November 06, 2009 11:12 PMfixed code formatting
    •