Wrapping up the current state of slug generation for Pages

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045559
This commit is contained in:
skewed
2010-01-17 09:14:45 +00:00
parent 5cb2e0a7c8
commit 1a5996274d
10 changed files with 35 additions and 43 deletions

View File

@@ -74,7 +74,6 @@ namespace Orchard.Blogs.Controllers {
}
}
//TODO: (erikpo) Evaluate if publish options should be moved into create or out of create to keep it clean
model.BlogPost = _services.ContentManager.UpdateEditorModel(_services.ContentManager.New<BlogPost>("blogpost"), this);
model.BlogPost.Item.Blog = blog;
if (!publishNow && publishDate != null)
@@ -86,6 +85,7 @@ namespace Orchard.Blogs.Controllers {
return View(model);
}
//TODO: (erikpo) Evaluate if publish options should be moved into create or out of create to keep it clean
_services.ContentManager.Create(model.BlogPost.Item.ContentItem, publishNow ? VersionOptions.Published : VersionOptions.Draft);
//TEMP: (erikpo) ensure information has committed for this record