Can the Document Manager point to a different site?

19 posts, 1 answers
  1. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 13 Aug 2008 Link to this post

    We have a centralized document center site, plus a wiki site. We use the RadEditor in the wiki site. Is there a way to configure the RadEditor so that the Document Manager uploads files to the document center site instead of to the document library in the wiki site? We want to keep all documents in the document center, but users want to be able to upload and link to documents easily within the wiki, so we're hoping we can point the Document Manager to the document center site.

    Thanks for any help. -Steve
  2. George
    Admin
    George avatar
    859 posts

    Posted 14 Aug 2008 Link to this post

    Hi Steve,

    Could you please clarify where is this document center situated? If it is within the current site collection you can easily achieve the desired behavior by opening the respective ToolsFile and setting the DocumentsPaths property to point to the desired library. Note that, when you set path starting without slash (e.g. "DocumentCenterLibrary"), you will refer a local library - library from the current Web. If you set path staring with slash (e.g. "/DocumentCenterLibrary"), you will refer a library from the site collection (root).


    For example:
    SiteCollection/DocumentCenterLibrary
    SiteCollection/SubSite1/DocumentCenterLibrary

    Lets  open the SubSite1 ConfigFile.xml and set the following documents path:
    <property name="DocumentsPaths">
      <item>DocumentCenterLibrary</item>
    </property>
    The DocumentManager will load the SiteCollection/SubSite1/DocumentCenterLibrary

    If you set the path with slash the DocumentManager will open the SiteCollection/DocumentCenterLibrary e.g. 
    <property name="DocumentsPaths">
      <item>/DocumentCenterLibrary</item>
    </property>

    If you do not set the editor's DocumentsPaths property the dialog will show all the libraries from the current Web.

    If the document center is outside the current site collection the desired behavior cannot be achieved - this scenario is not supported.

    In addition please review the following help article:
    http://www.telerik.com/help/aspnet-ajax/different-configuration-files-for-different-webs.html

    I hope this helps.

    Sincerely,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 19 Aug 2008 Link to this post

    Your answer sounds simple, but neither I nor my IT guy can find any of the config files that you're refering to. Where is the ToolsFile or the Configfile.xml?

    I also tried to follow the instructions here http://www.telerik.com/help/aspnet-ajax/setting-config-tools-files-in-wcm.html and got nowhere. For example, step 2 says to open a page in SharePoint Designer and choose Edit Pay Layout, but I don't find any such command in Designer. Despite that I opened some pages in our wiki site thas has RadEditor installed, but I couldn't find a ConfigFile property.

    So I'm stuck right now. It sounds like all we need to do is set or edit a property in a file, but I can't even find the file. Sorry to be such a noob. Any more help would be greatly appreciated.

    Steve
  4. George
    Admin
    George avatar
    859 posts

    Posted 20 Aug 2008 Link to this post

    Hi Steve,

    Could you please clarify which version of RadEditor for MOSS are you using (ASP.NET or ASP.NET AJAX)?
    If you are using v.4.x please review bellow the following links:
    If you are using v.5.x please review bellow:
    All the best,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 21 Aug 2008 Link to this post

    How do I tell which version we have? It was installed by someone who is no longer with the company.
    Thanks!
    Steve
  6. George
    Admin
    George avatar
    859 posts

    Posted 21 Aug 2008 Link to this post

    Hi Steve,

    Open the Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\x.x.x.x__1f131a624888eeed - here you can see what is the current version of RadEditor for MOSS installed on your server.

    I hope this helps.

    Kind regards,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 25 Aug 2008 Link to this post

    Hello again,

    We have this version/seed: 4.5.0.0__1f131a624888eeed.

    We tried setting the DocumentsPaths in the Configfile.xml, but that didn't seem to make any difference. In the Document Manager, all documents are uploaded to the wiki site, and I can't navigate past that site when trying to link to a document. The other site that I want to be able to connect to is in the same site collection.

    If you have any more ideas, I would still like to get this feature activated. In a previous post you mentioned a ToolsFile -- is that different than the ConfigFile.xml?

    Thank you,
    Steve
  8. George
    Admin
    George avatar
    859 posts

    Posted 26 Aug 2008 Link to this post

    Hi Steve,

    You can achieve the desired behavior as follows:

    Web Part and WCM scenario
    :
    You need to modify the ConfigFile.xml which is located in the following folder: /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/4.x.x.x__1f131a624888eeed/RadControls/Editor/

    For example you can set the DocumentsPaths property here: 
    <property name="DocumentsPaths"> 
       <item>/_layouts/CustomDocumentsLibrary</item> 
    </property>

    SharePoint forms scenario (Lists, Wikis, Blogs, etc.)
    You need to modify the ListConfigFile.xml located in the same folder.

    It is important to make sure that the pat to be set path is correct and can be accessed. If you still experience the problem, please upgrade to the latest version of the control and test the behavior.

    I hope this helps.

    Sincerely,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 29 Aug 2008 Link to this post

    Hello again,

    First I want to say that you have been great about answering my questions really fast. Excellent support!

    Unfortunately, I'm not quite there yet with this change. We have two test sites, a document center and a wiki. We added this to the ListConfigFile.xml for the wiki:

    <property name="DocumentsPaths">
      <item>/TestSites/wiki1</item>
      <item>/TestSites/DocTest2</item>
    </property>

    Now we get an error when we open the Document Manager in RadEditor. The error says "Value does not fall within the expected range." I'll paste the source of the complete error at the bottom of this message. The full path to the wiki site is http://sgportal/TestSites/wiki1 -- do we need to include the /sgportal in the DocumentsPaths entry?

    I just opened the RadEditor Document Manager from another wiki in the site collection, and it gave me the same error message, even though we modified the ListConfigFile in the wiki1 directory tree. Do these settings affect all instances of the RadEditor? I saw an article on your site about using the unique ID to separate instances, but I didn't think we would need to do that for this situation.

    One file question. Do we need to restart the service after making changes to ConfigFile.xml or ListConfigFile.xml?

    Thanks so much for your help. Here's the HTML source of the complete error message:
    =====

                <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

                <h2> <i>Value does not fall within the expected range.</i> </h2></span>

                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

                <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

                <br><br>

                <b> Exception Details: </b>System.ArgumentException: Value does not fall within the expected range.<br><br>

                <b>Source Error:</b> <br><br>

                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code>

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>

                      </td>
                   </tr>
                </table>

                <br>

                <b>Stack Trace:</b> <br><br>

                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>

    [ArgumentException: Value does not fall within the expected range.]
       Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl) +600
       Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl) +64
       Microsoft.SharePoint.SPWeb.GetFolder(String strUrl) +59
       Telerik.SharePoint.Editor.SPContentProvider.GetSPFolderFromPath(String path) +644
       Telerik.SharePoint.Editor.SPContentProvider.ResolveDirectory(String path) +17
       Telerik.SharePoint.Editor.SPContentProvider.ResolveRootDirectoryAsTree(String path) +10
       Telerik.WebControls.RadEditorUtils.FileBrowserContentProvider.ResolveViewPaths() +102
       Telerik.WebControls.EditorControls.FileBrowser.SerializeViewPaths() +102
       Telerik.WebControls.EditorControls.FileBrowser.OnPreRender(EventArgs e) +258
       System.Web.UI.Control.PreRenderRecursiveInternal() +144
       System.Web.UI.Control.PreRenderRecursiveInternal() +258
       System.Web.UI.Control.PreRenderRecursiveInternal() +258
       System.Web.UI.Control.PreRenderRecursiveInternal() +258
       System.Web.UI.Control.PreRenderRecursiveInternal() +258
       System.Web.UI.Control.PreRenderRecursiveInternal() +258
       System.Web.UI.Control.PreRenderRecursiveInternal() +258
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3681
    </pre></code>

  10. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 03 Sep 2008 Link to this post

    Hi,

    I'm just posting a new reply in the hope that this thread will pop up in your queue. You folks have been so fast with your previous replies, but I haven't heard back yet to my questions from the end of last week. Thanks for any ideas!

    Steve
  11. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 04 Sep 2008 Link to this post

    Hi Steve,

    We apologize for the delayed reply. When you set the document paths in the configuration file, they must point directly to a document library and not a site. For example, if your library is called SharedDocuments and it is in the DocTest2 site, you need to use the following:

    <property name="DocumentsPaths">
      <item>/TestSites/DocTest2/SharedDocuments
    </item>
    </property>


    I think that the error you have been getting has been fixed in later RadEditor for MOSS versions. If you still cannot get the Document Manager to work after you set the paths directly to the libraries, then the only thing we can suggest is to upgrade to the current RadEditor for MOSS 4 build (4.54). You can get the files by logging on to our site, navigating to "My Licenses", then "My Purchases", then expanding the "RadEditor" control from the "RadControls for ASP.NET" group, and finally clicking the "Downloads" tab. Get the full featured editor for MOSS download and then upgrade your installation, following the steps in this document - http://www.telerik.com/help/moss/editor/upgrade%20to%20a%20newer%20version%20of%20radeditor%20for%20moss.html After you finish with the upgrade, go to the wiki site and disable the editor features and enable them again. Finally, restart IIS.

    Kind regards,
    Lini
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  12. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 09 Sep 2008 Link to this post

    Hi again,

    Sorry to be dragging this on, but we still don't have this working. Just as a summary, here's what we want to do. We have a wiki site and a document center site in the same site collection. When editing wiki pages with the RadEditor, we want to be able to use the Document Manager to upload documents to the document library in the document center and create links to those documents. We plan to remove the document library that is in the wiki site, so all documents will be in the document center library.

    Here is the structure of the site collection:

    +-sdportal1  <== site collection
    +--TestSites  <== site directory
    +---wiki1     <== wiki site
       +---DocTest2  <== document center
         +--Documents  <== document library in document center

    Just to be clear, if I have the document center library open in my browser, the address bar shows http://sdportal1/TestSites/DocTest2/Documents/Forms/AllItems.aspx

    We've tried every path variation that we can think of for the DocumentsPaths setting in the ListConfigFile.xml file. Here's what we've tried:

    /sdportal1/TestSites/DocTest2/Documents
    /TestSites/DocTest2/Documents
    /DocTest2/Documents

    Plus some others that didn't make any sense. The only change that we've seen in the Document Manager is that the "Document File" field -- which is normally blank -- now shows the path to the wiki document library, which is /TestSites/wiki1/Wiki Pages. Unfortunately, that's not what we want.

    We're currently running version 4.5.0.0. In the last reply from Telerik support Lini said, "I think that the error you have been getting has been fixed in later RadEditor for MOSS versions." (italics mine) We don't want to spend the time to upgrade for no reason. Please confirm that version 4.54 really does contain a change that would make this work for us by including the bug decription or change description in your reply.

    Finally, please tell me which of the above paths should work if this feature was working. Or tell me what path will work. We've tried every variation that you've suggested (plus more) and we're out of ideas, and we can't even troubleshoot because we don't know what the value should be.

    Thanks again for hanging in there with us. I have to tell you though that some people on my team are saying that we'll have to switch to another editor if we can't get this working.

    Steve

  13. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 10 Sep 2008 Link to this post

    It looks like the formatting didn't work quite right in part of my previous post when I was trying to show the structure/hiearchy of the site collection. Here it is again, with dots instead of leading spaces:

    +-sdportal1  <== site collection
    ..+-TestSites  <== site directory
    ....+-wiki1     <== wiki site
    ....+-DocTest2  <== document center
    ......+-Documents  <== document library in document center

    I hope that turns out right when I post this. Thanks again for your help.

    Steve

  14. Answer
    Lini
    Admin
    Lini avatar
    2144 posts

    Posted 11 Sep 2008 Link to this post

    Hello Steve,

    The correct path is /TestSites/DocTest2/Documents - basically you just copy the url to the library and remove the path to the root site of the site collection.

    As for your second question - I checked the release notes of the RadEditor for MOSS (available http://www.telerik.com/ReleaseHistory.aspx?Id=543) and found the following entry for version 4.52:

    FEATURE: updated content provider. When the paths in the editor config file start with a slash, the provider will look in the root of the site collection. When the paths do not start with a slash (e.g. only a library name), the provider will look in the current web.

    This means that you should upgrade to the latest build of the RadEditor for MOSS. Upgrade instructions are available in the CHM documentation that comes in the editor download archive or online at http://www.telerik.com/help/moss/editor/upgrade%20to%20a%20newer%20version%20of%20radeditor%20for%20moss.html

    All the best,
    Lini
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  15. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 23 Sep 2008 Link to this post

    I think we're really close, but I just need to ask a couple of questions to be certain. We finally installed version 4.54 - yay! Here's what I see:

    1. The Document Manager button is gone completely, but we now have a button for the Link Managere (MOSSLinkManager). Was that supposed to happen? We upgraded from 4.5.0 to 4.54. The MOSS Link Manager seems pretty good, but I just want to find out if the Document Manager is still available in version 4.54.

    2. I added the DocumentsPaths property to the ListConfigFile.xml, it works! The MOSS Link Manager now opens to the site that I specified in the DocumentsPaths property. That's great!

    3. When I use the MOSS Links Manager to navigate into a folder in the document library, then click the Upload button, the new document is uploaded to the root of the library, not to the currently open folder. Is there any way to upload to the current folder in the library?

    Thanks for your help with this.
    Steve
  16. Steve
    Steve avatar
    13 posts
    Member since:
    Mar 2008

    Posted 26 Sep 2008 Link to this post

    Hi Telerik Support,

    Any answers on these two questions?

    1. In version 4.54, should we still have the Document Manager, or is it completely replaced by the MOSSLinkManager? If the DM is still there, how do I activate it?

    2. In the MOSSLinkManager, is there a way to upload documents to existing subfolders instead of to the root of a document library?

    Thanks so much!

    Steve
  17. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 02 Oct 2008 Link to this post

    Hello Steve,

    Apologies for the delayed reply. We were quite busy with the service pack release in the last week.

    The Document Manager is still available in the new version. You need to open the editor's tools file (ToolsFile.xml or ListToolsFile.xml), located at
    /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/4.5.4.0__1f131a624888eeed/RadControls/Editor/ on your WFE server. Open the tools file and add the tool DocumentManager:

    <tool name="DocumentManager" />

    About the uploading issue - I think this is the default behavior of the MOSS dialog and it cannot be changed. If you use the document manager you should be able to upload to folders inside the document library. For the  MOSS link manager, you will need to click the library name in the newly opened window, then browse to the desired folder again and then click the upload action.

    Regards,
    Lini
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  18. Atul
    Atul avatar
    5 posts
    Member since:
    Jul 2007

    Posted 22 Jan 2010 Link to this post

    Hi,
    a few similiar questions in this area;

    we are using the RadEditor - "RadControls for ASP.NET AJAX Q3 2009" on MOSS 2007.


    1. none of your customers had demand for cross site collection hyperlinks or document uploading?

    2. by reading the above posts I understand how to manually and explicitly add document libraries from the current site collection to the "Upload tree view". But, since we have lots of document libraries and lots of sites in our site collection we would like the user to be able to navigate through different websites in the upload dialog (in the same site collection if you don't have an answer for my first question)  and then see all the lists in the selected website and upload a document in there. Is this doable?

    Thanks,
    Dan.
  19. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 25 Jan 2010 Link to this post

    Hi Atul,
    By default the document manager shows all the libraries from the current site. If you want to see libraries from different sites, you will have to specify all of them in the DocumentsPaths collection (for more information review http://www.telerik.com/help/aspnet-ajax/document_manager.html). In addition you are able to set libraries from sites, which are only in the current site collection. You can not access sites from different site collections.

    Sincerely yours,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top