Inserting image selector into mvc widget

Posted by Community Admin on 04-Aug-2018 23:24

Inserting image selector into mvc widget

All Replies

Posted by Community Admin on 15-Nov-2015 00:00

Hi there,

I've created a new widget in MVC using thunder (with a model, view and controller) but can't figure out how to add an image selector to my widget.

Is there an example or instructions somewhere of how to add a sitefinity image selector (to grab images from the library) to a custom MVC widget?

Thanks,
Michael

Posted by Community Admin on 17-Nov-2015 00:00

Hello Michael,

When the MVC Widget was created using Thunder, to use the Feather Designer with this Widget please read and follow the instructions of this documentation: http://docs.sitefinity.com/feather-enable-designers-for-thunder-widgets.

Feather Image Selector can be used to the MVC Widget's Designer to display and retrieve one or several selected images.

Instructions of how to add feather image selector to a custom MVC Widget's Designer can be found here: http://docs.sitefinity.com/feather-image-selector

Feather samples can be found here: https://github.com/Sitefinity/feather-samples, these sample can be inspected for more understanding of how feather widget designer can be implemented.


Regards,
Arnob Makhlaqur
Telerik

 
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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 17-Nov-2015 00:00

Thank you for your reply Arnob.

I'm trying to do this in the MVC widget itself (Default.cshtml), rather than in the web control MVC widget designer - i.e. in the widget View/Model/Controller.

Is there any way to access the feather image selector in Default.cshtml, rather than in the widget designer?

Thanks,
Michael

Posted by Community Admin on 19-Nov-2015 00:00

Hello Michael,

Image selector can be used in the frontend, as well as in the backend. For example, on a page, as well as in a widget designer. For more information, see Feather: Use content selectors outside of widget designer views.

Regards,
Arnob Makhlaqur
Telerik

 
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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 19-Nov-2015 00:00

Thanks Arnob, that looks like what I'm looking for.

Cheers,
Michael

Posted by Community Admin on 19-Nov-2015 00:00

Thanks Arnob, that looks like what I'm looking for.

Cheers,
Michael

This thread is closed