Create admin tool pages in an MVC module

Member since: 2010

I'm working on an add-on and I am trying to make my MVC pages become admin tool pages :)

Earlier, without MVC, we have had the aspx pages that were inheriting from SystemBasePage:

    [GuiPlugIn(
        DisplayName = "xx",
        RequiredAccess = EPiServer.Security.AccessLevel.Administer,
        Area = PlugInArea.AdminMenu,
        UrlFromModuleFolder = "modules/xx/yy.aspx")]
    public partial class yy : SystemPageBase

    

How do I do the same for MVC?

 

#75306 Sep 24, 2013 17:18
  • Member since: 2011

    These are code fragments from ScheduledJobOverview AddOn:

    [GuiPlugIn(DisplayName = "Scheduled jobs overview", UrlFromModuleFolder = "Overview", Area = PlugInArea.AdminMenu)]

        

    module.config:

    <?xml version="1.0" encoding="utf-8"?>
    
    <module loadLocalBin="false">
      <assemblies>
        <add assembly="TechFellow.ScheduledJobOverview" />
      </assemblies>
    
      <routes>
        <route url="{moduleArea}/{controller}/{action}">
          <defaults>
            <add key="moduleArea" value="TechFellow.ScheduledJobOverview" />
            <add key="controller" value="" />
            <add key="action" value="Index" />
          </defaults>
        </route>
      </routes>
    </module>

        

    #75315 Sep 25, 2013 9:37
  • Member since: 2010

    Thx a lot! I'll try it out immediately!

    #75322 Sep 25, 2013 12:14