mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Added an admin blog management page and changed some links throughout the blog admin to point to it instead of the blog edit page.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043012
This commit is contained in:
@@ -51,6 +51,19 @@ namespace Orchard.Blogs.Controllers {
|
||||
return View(new BlogViewModel { Blog = blog, Posts = posts });
|
||||
}
|
||||
|
||||
//TODO: (erikpo) Should move the slug parameter and get call and null check up into a model binder
|
||||
public ActionResult ItemForAdmin(string blogSlug)
|
||||
{
|
||||
Blog blog = _blogService.Get(blogSlug);
|
||||
|
||||
if (blog == null)
|
||||
return new NotFoundResult();
|
||||
|
||||
IEnumerable<BlogPost> posts = _blogPostService.Get(blog);
|
||||
|
||||
return View(new BlogForAdminViewModel { Blog = blog, Posts = posts });
|
||||
}
|
||||
|
||||
public ActionResult Create() {
|
||||
return View(new CreateBlogViewModel());
|
||||
}
|
||||
|
Reference in New Issue
Block a user