We do have old MVC based dashboard gadget something like this:
[Gadget(Name = "Gadget Name", Title = "Gadget Title",
Description = "Gadget Description",
ClientScriptInitMethod = "epi.myGadget.init")]
public class MyGadgetController : Controller
[GadgetAction(Text = "List of Activities")]
public ActionResult Index()
var activities = GetActivities();
[GadgetAction(Text = "List of Events")]
public ActionResult EventList()
var events = GetEvents();
But, according to EPiServer (this), old Gadget framework is deprecated. So, I want to convert above gadget to EPiServer component. Did many reading on this and couldn't able to figure out how to do that. Specially how to hook MVC components (like views) in a component. Also how to implement GadgetAction behavior
Any help ?
Did you figure out anything in the end? We are in a similar situation.
Bump - having a similar issue here
Here is a way =) http://devblog.gosso.se/2017/06/convert-deprecated-gadgets-to-components-in-episerver/
Thanks Gosso for your link. But form EPiServer, I got to know that gadgets support will completely remove from EPiServer v11 (it's already deprecated for the moment as well). So I believe it's good to move out from gadgets
Yes, Dan, thats right, my blog post shows you how to =)
Thanks for the link,
Unfortunately we need to use the episerver context for almost every gadget we have.
EDIT: To clarify, our gadgets communicate with the backend to manipulate database and episerver, or just to fetch information about content etc.