More in this section

Forums / Developing with Sitefinity / Extending the Image Control

Extending the Image Control

2 posts, 0 answered
  1. AmrElsayed
    AmrElsayed avatar
    87 posts
    18 Jul 2012
    12 Dec 2011
    Link to this post
    We are trying to create a variation of the Image control where the new one would allow the user to select two images instead of one, the current image control provides the user with two views to upload a new image or select one from the images library, after some research, we noticed that the image control is using the ImageSettingsDesigner control designer.

    We are now trying to extend the designer to allow the user to select two images and we would like to ask about two things:
    1. Is there is an existing way to use the image selector multiple times on a single control?
    2. If not, how can we access the html templates and scripts associated with the existing designer so we can extend it ourselves.

  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    24 Sep 2012
    15 Dec 2011
    Link to this post
    Hi Amrelsayed,

     What I can suggest here is something that would require no coding and would have the same end effect with little effort. You can use the Image Gallery widget and just filter the Images by Category (or place them in another library and select that particular library in the designer). This would let you filter whatever images you like and wouldn't bother you with any customizations.
    As far as creating a custom control for this, by inheriting the current one - this would be very hard, as the current selector is implemented to select only one image and to change that you will have to mess not only with the designer but with the javascript component of the designer and the control's class and template. The templates of the designer and control can be found in your SDK folder in SDK >> Content >> Resources >> Frontend >> Libraries >> Images.

    All the best,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested 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