Inserting image selector into mvc widget
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
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
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
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
Thanks Arnob, that looks like what I'm looking for.
Cheers,
Michael
Thanks Arnob, that looks like what I'm looking for.
Cheers,
Michael