+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Inserting image selector into mvc widget

Inserting image selector into mvc widget

6 posts, 0 answered
  1. michael
    michael avatar
    17 posts
    Registered:
    15 Nov 2015
    15 Nov 2015
    Link to this post

    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

  2. Arnob Makhlaqur
    Arnob Makhlaqur avatar
    41 posts
    Registered:
    21 Nov 2016
    17 Nov 2015
    Link to this post
    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
     
  3. michael
    michael avatar
    17 posts
    Registered:
    15 Nov 2015
    17 Nov 2015 in reply to Arnob Makhlaqur
    Link to this post

    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

  4. Arnob Makhlaqur
    Arnob Makhlaqur avatar
    41 posts
    Registered:
    21 Nov 2016
    19 Nov 2015
    Link to this post
    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
     
  5. michael
    michael avatar
    17 posts
    Registered:
    15 Nov 2015
    19 Nov 2015
    Link to this post

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

    Cheers,
    Michael

  6. michael
    michael avatar
    17 posts
    Registered:
    15 Nov 2015
    19 Nov 2015
    Link to this post

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

    Cheers,
    Michael

6 posts, 0 answered