This is a migrated thread and some comments may be shown as answers.

Can the Document Manager point to a different site?

18 Answers 181 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 14 Aug 2008, 12:37 AM
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

18 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 14 Aug 2008, 01:53 PM
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.
0
Steve
Top achievements
Rank 1
answered on 19 Aug 2008, 06:52 PM
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
0
George
Telerik team
answered on 20 Aug 2008, 09:04 AM
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.
0
Steve
Top achievements
Rank 1
answered on 21 Aug 2008, 06:01 AM
How do I tell which version we have? It was installed by someone who is no longer with the company.
Thanks!
Steve
0
George
Telerik team
answered on 21 Aug 2008, 11:26 AM
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.
0
Steve
Top achievements
Rank 1
answered on 25 Aug 2008, 05:39 PM
Hello again,

We have this version/seed: 4.5.0.0__1f131a624888eeed.
0
George
Telerik team
answered on 26 Aug 2008, 08:31 AM
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.
0
Steve
Top achievements
Rank 1
answered on 29 Aug 2008, 11:09 PM
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>

0
Steve
Top achievements
Rank 1
answered on 03 Sep 2008, 04:37 PM
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
0
Lini
Telerik team
answered on 04 Sep 2008, 08:10 AM
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.
0
Steve
Top achievements
Rank 1
answered on 09 Sep 2008, 07:47 PM

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

0
Steve
Top achievements
Rank 1
answered on 10 Sep 2008, 05:14 PM

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

0
Accepted
Lini
Telerik team
answered on 11 Sep 2008, 07:08 AM
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.
0
Steve
Top achievements
Rank 1
answered on 24 Sep 2008, 03:29 AM
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
0
Steve
Top achievements
Rank 1
answered on 26 Sep 2008, 10:23 PM
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
0
Lini
Telerik team
answered on 02 Oct 2008, 08:46 AM
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.
0
Atul
Top achievements
Rank 1
answered on 22 Jan 2010, 11:47 PM
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.
0
Stanimir
Telerik team
answered on 25 Jan 2010, 09:38 AM
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.
Tags
WebParts for SharePoint
Asked by
Steve
Top achievements
Rank 1
Answers by
George
Telerik team
Steve
Top achievements
Rank 1
Lini
Telerik team
Atul
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or