public ActionResult Insert(InsertModel im) { EditModel pm = EditModel.CreateByTemplate(im.TemplateId); ViewBag.Title = Piranha.Resources.Post.EditTitleNew + pm.Template.Name.ToLower(); return(View("Edit", pm)); }
public ActionResult Insert(InsertModel im) { EditModel pm = EditModel.CreateByTemplate(im.TemplateId); ViewBag.Title = Piranha.Resources.Post.EditTitleNew + pm.Template.Name.ToLower(); // Executes the post edit loaded hook, if registered if (WebPages.Hooks.Manager.PostEditModelLoaded != null) { WebPages.Hooks.Manager.PostEditModelLoaded(this, WebPages.Manager.GetActiveMenuItem(), pm); } return(View(@"~/Areas/Manager/Views/Post/Edit.cshtml", pm)); }