Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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
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.
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 { public MyGadgetController() { //Some code; } [GadgetAction(Text = "List of Activities")] public ActionResult Index() { var activities = GetActivities(); return View(activities); } [GadgetAction(Text = "List of Events")] public ActionResult EventList() { var events = GetEvents(); return View(events); } }
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