Cleaned up all blog urls to go through UrlHelper extension methods so refactoring is easier (except for the admin menu which only works with Action links at the moment) and added admin menu items for blogs.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041918
This commit is contained in:
ErikPorter
2009-11-23 18:20:54 +00:00
parent 215e0f012a
commit cdc9d11cae
14 changed files with 139 additions and 21 deletions

View File

@@ -56,7 +56,7 @@ namespace Orchard.Blogs.Controllers {
Blog blog = _blogService.CreateBlog(model.ToCreateBlogParams());
return RedirectToAction("edit", new { blog.Record.Id });
return Redirect(Url.BlogEdit(blog.Slug));
}
public ActionResult Edit(string blogSlug) {
@@ -75,7 +75,7 @@ namespace Orchard.Blogs.Controllers {
_notifier.Information(T("Blog information updated"));
return RedirectToAction("Edit", new { blogSlug });
return Redirect(Url.BlogEdit(model.Slug));
}
bool IUpdateModel.TryUpdateModel<TModel>(TModel model, string prefix, string[] includeProperties, string[] excludeProperties) {