Extending the Image Control
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
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.