mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Changing content type names to PascalCase
Became clear while editing metadata the names the only lowercase value and stick out pretty badly especially when used as {id} in urls --HG-- branch : dev
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Orchard.Blogs.Commands {
|
||||
return "Invalid Slug provided. Blog creation failed.";
|
||||
}
|
||||
|
||||
var blog = _contentManager.New("blog");
|
||||
var blog = _contentManager.New("Blog");
|
||||
blog.As<ICommonAspect>().Owner = admin;
|
||||
blog.As<RoutableAspect>().Slug = Slug;
|
||||
blog.As<RoutableAspect>().Title = Title;
|
||||
@@ -95,7 +95,7 @@ namespace Orchard.Blogs.Commands {
|
||||
string postName = item.Element("title").Value;
|
||||
|
||||
Context.Output.WriteLine("Adding post: {0}...", postName.Substring(0, Math.Min(postName.Length, 40)));
|
||||
var post = _contentManager.New("blogpost");
|
||||
var post = _contentManager.New("BlogPost");
|
||||
post.As<ICommonAspect>().Owner = admin;
|
||||
post.As<ICommonAspect>().Container = blog;
|
||||
post.As<RoutableAspect>().Slug = Slugify(postName);
|
||||
|
Reference in New Issue
Block a user