예제 #1
0
        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));
        }
예제 #2
0
        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));
        }