Blog Name Modification

Topics: Business Logic Layer
Sep 19, 2013 at 10:11 PM
Edited Sep 19, 2013 at 10:12 PM
Currently you can't register a blog name that has spaces or other characters, which results in creating a blog that you later have to change the name in the setting.

It would be nice to be able to specify a "Friendly" name, and one to be used as the virtual directory. Currently the code looks like this,
        public static Blog CreateNewBlog(string blogName, string userName, string email, string password, out string message)
        {
            message = null;
            blogName = blogName.Trim();

            if (!ValidateProperties(blogName, userName, email, out message))
            {
                if (string.IsNullOrWhiteSpace(message))
                {
                    message = "Validation for new blog failed.";
                }
                return null;
            }

            Blog newBlog = new Blog()
            {
                Name = blogName,
                StorageContainerName = blogName.ToLower(),
                Hostname = "",
                IsAnyTextBeforeHostnameAccepted = true,
                VirtualPath = "~/" + blogName.ToLower(),
                IsActive = true,
                IsSiteAggregation = false
            };
Adding FriendlyName as a parameter instead of only using the blog name would help!