+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Creating a link to an uploaded Image

Creating a link to an uploaded Image

2 posts, 0 answered
  1. Joshua
    Joshua avatar
    1 posts
    Registered:
    12 Dec 2008
    21 Oct 2010
    Link to this post
    I have been using Sitefinity for quite some time now and this is the first time I have ever been asked by my content team how to do this. I searched around and did not find an answer but the terminology may be wrong.

    My marketing person was trying to simply highlight text and then browse to an image she had uploaded previously. So the link would pop open a window directed at the image file. Sitefinity allows this for PDFs or anything classified as a "document" but not for images. Is there a change I can make to one of the dialogs to allow for this?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Oct 2010
    Link to this post
    Hi Joshua,

    There is a LibraryImageDialog that returns the path to the image, but inside <img> tag which automatically renders the item. So, you need a custom RadEdtior button which calls LibraryImageDialog and then you should return the image location to the href of anchor. You could reuse the current dialog -Sitefinity\Admin\ControlTemplates\Libraries\Dialogs\ImageEditorDialog.ascx and modify its insertLink() function.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered