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

Make all sites browsable through the Image Manager

2 Answers 54 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Sébastien Nunes
Top achievements
Rank 1
Sébastien Nunes asked on 27 Oct 2010, 12:28 PM
Hi,

We are using the RAD Editor (5.7.1) integrated in our Sharepoint (2007) portal and it appears that by default the image manager displays image libraries from the current site and the current site collection. But the users are asking fo the same behavior as the OOTB image upload dialog which let the users to browse to any site from the current site collection.

I've been reading the help about the Image manager here: http://www.telerik.com/help/aspnet-ajax/image_manager.html

So I tried to add the following in my ConfigFile.xml: 
<property name="ImagesPaths">
  <item>/</item>
</property>

But when the Image Manager shows up it displays an error message "Not Found" instead of the tree view.

Am I missing something ? How can I make the Image Manager work like the OOTB one ?

Kind regards,

2 Answers, 1 is accepted

Sort by
0
Accepted
Stanimir
Telerik team
answered on 27 Oct 2010, 02:39 PM
Hi Sébastien Nunes,

In the following article you can find information on the ImageManager functionality http://www.telerik.com/help/aspnet-ajax/image_manager.html . There is described how to configure ImagesPaths and ImagesFilters properties of the RadEditor.

Here is some additional information on how the ImagesPaths collection works.

By default, all the libraries from the current site are included in the ImagePaths collection.

When you set path starting without slash (e.g. "ImagesLibrary"), you will refer a local library - library from the current Web. If you set path staring with slash (e.g. /ImagesLibrary), you will refer a library from the SiteCollection (root).

For example:
SiteCollection/ImagesLibrary
SiteCollection/SubSite1/ImagesLibrary

Lets  open the SubSite1 ConfigFile.xml and set the following images path:
<property name="ImagesPaths">
  <item>ImagesLibrary</item>
</property>
The ImageManager will load the SiteCollection/SubSite1/ImagesLibrary. 

If you set the path with slash the ImageManager will open the SiteCollection/ImagesLibrary e.g. 
<property name="ImagesPaths">
  <item>/ImagesLibrary</item>
</property>

Also you should know that if you set e library such as SiteCollection/SubSite1/ImagesLibrary, the currently logged user should have at least reading rights for all site collections of the path. Otherwise the ImagesLibrary will not appear in the ImageMangager dialogue.

With the ImageManager provided by Telerik you can browse only images from the current site collection. Unfortunately there is no way of how to achieve the same functionality as the OOB dialog. However you can configure the editor to use the OOB dialog instead the one provided by Telerik. In order to do this you need to modify the respective ToolsFile.xml or ListToolsFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder.
Replace
<tool name="ImageManager" shortcut="CTRL+G" />
with
<tool name="MOSSImageManager" shortcut="CTRL+G" />



All the best,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sébastien Nunes
Top achievements
Rank 1
answered on 28 Oct 2010, 11:51 AM
Thanks for your answer.

We'll use the MOSS Image Manager then...

That's a pity as the Telerik Image Manager dialog looks much better.
Tags
WebParts for SharePoint
Asked by
Sébastien Nunes
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Sébastien Nunes
Top achievements
Rank 1
Share this question
or