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

ImagesPaths

15 Answers 203 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kenneth Gangsto
Top achievements
Rank 1
Kenneth Gangsto asked on 04 Dec 2007, 08:59 AM
In previous RadEditor if I had one ImagePath set, it would default to that folder when you opened the ImageManager.

But in Prometheus when you open the ImageManager with one folder, you first need to select that folder to see the content.

Example:
RadEditor1.ImageManager.ViewPaths = new string[] { "~/Images/CustomerA" };

When CustomerA used to open ImageManager, he directly saw his files. But in Prometheus, he now sees a folder "CustomerA", and has to double-click it to see his files.

Is it possible to change this behaviour? For us having many different users on our CMS system, this makes the ImageManager alot harder to use, especially when our CustomerA folder name actually look pretty cryptic.

15 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 06 Dec 2007, 08:38 AM
Hi Kenneth,

Indeed the way the folders are shown in image manager is different, because of the different implementation. Nevertheless, you have a point and I have logged your request in our to-do list. We will take it for consideration for the Q1 release that will appear next year.

Your points were updated.


Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
genesplitter
Top achievements
Rank 2
answered on 07 Dec 2007, 11:12 PM
I use the ImagePath in exactly the same manner as Kennith and my (many) clients have the same problem - they don't see their files initially, they must first click on their folder.

0
Rumen
Telerik team
answered on 09 Dec 2007, 11:22 AM
Thank you for your request, Donald!

As George has already wrote in his message, we will consider providing the requested functionality in the Q1 version of RadControls "Prometheus".

Let us know if you have any other feature requests.


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ric c
Top achievements
Rank 1
answered on 21 Dec 2007, 02:33 PM
Is it possible to set the path to an absolute path eg:

c:\inetpub\wwwroot\customerA\images?????
0
Rumen
Telerik team
answered on 21 Dec 2007, 05:28 PM
Hi Ric,

In particular cases, the nature of ASP.NET and IIS in particular does not permit you to use absolute paths which point outside your application. The ImagesPaths property is one of these cases - you can use relative paths and/or virtual directories.

The ImagesPaths property should receives as an argument an array of string paths pointing to folders that should be:
  • subdirectories of your web application or
  • virtual directories of your web application that have physical paths pointing outside of your web application. This is what we suggest for your scenario. You should make the front end web images directory a virtual folder pointing to the web application with RadEditor. 
  • folders placed in the root of IIS, which you can access it by ImagesPaths="/images, /images1", with the "/" sign.
Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rdochert
Top achievements
Rank 1
answered on 13 Jan 2008, 04:20 AM
i'd like to also jump in here and say that this seems like a very poor implementation to me. i cannot fathom why it would be desireable for users to have to double-click a directory name to access the directory we have specifically pointed them towards.
any news on this being fixed?
thanks,
rob
0
Rumen
Telerik team
answered on 14 Jan 2008, 12:03 PM
Hi Rob,

We fully agree with you and actually the FileBrowser dialogs of the classic version of RadEditor load directly the specified file directory.

This feature is logged in our ToDo list for the release of RadControls "Prometheus" Q1 2008 and we will do our best to implement it. Unfortunately, we will be not able to implement it before the Q1 2008 due to time constrains.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
TC
Top achievements
Rank 2
answered on 25 Jan 2008, 08:39 AM
I'd also like to put my vote on this issue. It creates a lot of confusion for long time rad editor users who are now wondering why when they bring up the Image Manager dialog, they can't see their stuff and they can't upload until they double-click into the designated folder. Many non-power users are scratching their heads hard as they thought their stuff went missing!
0
Rumen
Telerik team
answered on 25 Jan 2008, 09:27 AM
Hi TC,

Thank you for your vote. We will have it in mind when enhancing the editor's File Browser dialogs for the official release of RadEditor "Prometheus".

Let us know if you have any other suggestions on improving RadEditor "Prometheus".

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
rdochert
Top achievements
Rank 1
answered on 27 Jan 2008, 03:49 AM
is there any way this could be included in a hotfix. i dont really agree that it should be "considered" for the next prometheus release since it is fundamentally wrong for it to have been implemented this way. there can be little doubt this is a backward step for the prometheus version compared to the asp.net version. i have no idea how difficult this is for telerik to implement but, on the surface of it, it would seem to be a very easy fix and since there is no workaround i think i hotfix is sorely needed.
cheers,
rob
0
Paul Cook
Top achievements
Rank 1
answered on 29 Jan 2008, 02:21 PM
Hi, I just want to add a "me too" to the forum. If I set a path to "~/Folder/Subfolder" I think the dialogs should open set to Subfolder.

Looking forward to the fix!

Paul.
0
Rumen
Telerik team
answered on 29 Jan 2008, 02:57 PM
Hi,

We do appreciate your feedback and we will include the requested feature in the upcoming SP release of RadControls "Prometheus", due in the end of February' 2008.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Per Holmqvist
Top achievements
Rank 2
answered on 11 Feb 2008, 07:18 PM
I love that you will implement this in the next SP, shows that you listen to your customers and actually delivers more than expected ;)

I vote for an intelligence if i have MULTIPLE patch then the folders shouldbe listed demanding me to doubleclick, but if I only have one path it should be default openend.

And in the asp.net version you could hook the javascript like 

RadEditorCommandList[

"ImageManager"] = function(commandName, editor, oTool)

{

ImageManagerCommand (commandName, editor, callBackFn);

This seams not working in the promotheus version cause I never get any returnvalue? How do i then manipulate the imagepath? Say I need to add http://images.mydomain.com/ to the imageURL cause another webbserver is feeding all media?

0
Rumen
Telerik team
answered on 12 Feb 2008, 09:34 AM
Hi Per,

Here is an example how to achieve your scenario in RadEditor "Prometheus":

<telerik:radeditor runat="server" ID="RadEditor1" ImageManager-ViewPaths="~/" ImageManager-UploadPaths="~/"></telerik:radeditor>
<script type="text/javascript">
Telerik.Web.UI.Editor.CommandList["ImageManager"] = function(commandName, editor, args)
{
   var myCallbackFunction = function(sender, args)
   {
       var selectedItem = args.SelectedItem;
       var imgSrc =
selectedItem.getPath();
       alert(imgSrc);
      
       editor.pasteHtml("<img src='http://www.mydomain.com" +
imgSrc + "'/>")
   }
  editor.showDialog("ImageManager", {}, myCallbackFunction);
};
</script>


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Per Holmqvist
Top achievements
Rank 2
answered on 12 Feb 2008, 09:41 AM
Great, that did the trick. Thanks!!!
//Pelle
Tags
Editor
Asked by
Kenneth Gangsto
Top achievements
Rank 1
Answers by
George
Telerik team
genesplitter
Top achievements
Rank 2
Rumen
Telerik team
ric c
Top achievements
Rank 1
rdochert
Top achievements
Rank 1
TC
Top achievements
Rank 2
Paul Cook
Top achievements
Rank 1
Per Holmqvist
Top achievements
Rank 2
Share this question
or