Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Create admin tool pages in an MVC module

Vote:
 

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
Vote:
 

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
Vote:
 

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

#75322
Sep 25, 2013 12:14
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.