Testimonial Widget

Anish Joshi asked on November 25, 2019 15:43

Hi

I'm trying to create a widget in K12 MVC, I'm trying to extend the testimonial widget that comes with the dancing goat theme, with the current one you can only add one testimonial per widget, so if you wanted 5 on the page you would have to add 5 separate widgets. Is there a way to create a widget where you can add any amount of testimonials within that widget, to make at as a slideshow?

Regards

Anish

Recent Answers


Roman Hutnyk answered on November 25, 2019 16:21

As long as you're using MVC you are free to build any widget you need.

Check any listing (e.g articles list) on Dancing Goat and just use it as a sample for your widget. You'll need to adjust layout (view) and change InfoProvider to one that fetches Testimonial content items. I'd also add a property to specify how many items you'd like to pull and present on the page (unless you need all of them)

0 votesVote for this answer Mark as a Correct answer

Anish Joshi answered on November 25, 2019 16:31

Hi Roman

Thanks for you reply, not sure if this would work for the solution I want as I would need the user to have control of what testimonials are shown and in what order, rather than getting it from a page type is it not possible to have some sort of repeater field within the widget where you can add rows of testimonials?

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on November 25, 2019 16:50

How do you store testimonials?

I guess you use either custom table or content items. Both approaches allow you to manage order and manage visibility on data level. So suggested approach should work unless client want to show them on different pages differently.

Could you provide more details on what is that you're trying to build?

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.