CMS 11 Reports with MVC

  • Page Owner: Not Set
  • Last Reviewed: 2022-04-21

I'd like to write a report in CMS 11 using MVC, what's the trick?


Answer

Two core things that should set you on the right track

Make your report controller with the following

    [GuiPlugIn(
      Area = PlugInArea.ReportMenu,
      Url = "~/YourReportPath",
      Category = "Client Reports",
      DisplayName = "Your Report",
      Description = "")]
    public class YourReportController : Controller

Globalasax.cs

routes.MapRoute("YourReportName", "YourReportPath/{action}", new { controller = "YourReportController", action = "Index" });

Comments

  • Info courtesy of @ChrisWahl