Extending the Image Control

Posted by Community Admin on 04-Aug-2018 21:48

Extending the Image Control

All Replies

Posted by Community Admin on 12-Dec-2011 00:00

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.

Thanks,
Amr

Posted by Community Admin on 15-Dec-2011 00:00

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

This thread is closed