protected override void OnActionExecuting(ActionExecutingContext filterContext) { var workContext = filterContext.GetWorkContext(); workContext.Layout.Metadata.Alternates.Add("Layout__Dialog"); }