Add a New Blog to Multi-Blog
There was a script created for SqlBlogProvider that emulates that portion of the SQL Setup script for “standard” BlogEngine.NET. I actually modified it several times and realized that I don’t like that approach as much as anyone, but had to take time to build a UI. Almost as hard as it is to select a name for a new project in Visual Studio, I had to think about how I wanted to access this maintenance utility. The first approach, basically where I am now, was to whip up a prototype in a Windows form, using a separate class (library) for the functionality, accessing the database via the same Linq2SQL provider. It worked, of course, but it’s not a perfect solution by any stretch.
Can anyone identify the correct answer or perfect solution?
Maybe not, but for “our” purposes it means the one that helps everyone or “most” everyone who will use this approach.
So who is “Everyone?”
We are the people who want to use BlogEngine.NET for its ease of use, intuitive and extendible architecture, and add on the multi-blogging capability. We are NOT a group of perfectionists, or corporations with bottomless pockets, nor are we people who are happy to blog all day, everyday on a single blog. We are also those who may want to rip any solution apart and improve it for our own needs…again, basically where I am today.
How to add a new blog, manually:
First you need to execute a script or add rows to several tables by hand. “BlogEngine Multi-Blog Dog Food” contains the SQL script “AddNewBlogHost.sql” which can make it easier to add a new Blog and Host to your multi-blog environment . Again, this is not the ideal solution, but the winform code has yet to be tested thoroughly. I’ll post it next chance I get anyway.
What else you need to know: More...