Today's tutorial is a follow up from How To Use A “Normal” Page Controller In Episerver?.
In today's guide, we're going to go a step further and use the standard MVC controller/view that we created to display extra debugging information for pages within the editor, as an additional custom view rendering.
public class ContentPageMetaDataPlugin : ViewConfiguration<ContentPage>
Key = "ContentPageMetaDataPlugin";
Name = "Page Debugging Information";
Description = "Page Debugging Information";
ControllerType = "epi-cms/widget/IFrameController";
ViewType = "/DebuggingInformation/";
IconClass = "epi-iconForms";
[Authorize(Roles = "WebEditors, WebAdmins, Administrators")]
public ActionResult Index()
var pageRouteHelper = EPiServer.ServiceLocation.ServiceLocator.Current.GetInstance<EPiServer.Web.Routing.PageRouteHelper>();
PageData currentPage = pageRouteHelper.Page;
public class CustomUiDescriptor: UIDescriptor<PageData>
DefaultView = "ContentPageMetaDataPlugin";
Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge