This project is read-only.

Multi-tenant Blog - with mutli skinning

Topics: ASP.NET 2.0, Themes
Nov 24, 2009 at 1:09 AM

Hi there,

Does BlogEngine.NET allow for multiple clients to exist on the one blog and be skinned seperately? e.g. can I have;

all point to the one IIS entry, all be skinned seperately and all have seperate logins to manage their own blogs?



Nov 26, 2009 at 11:13 AM

Out of the box, this isn't possible with BE.  You can do it of course if you use multiple websites or web applications.

But with the subdomains you have, it wouldn't be too difficult to achieve what you're looking for with a couple of modifications to BE.

Currently with BE, you can have multiple logins for bloggers -- so that's already taken care of.

You can modify BE to display a different theme/skin based on the subdomain.  This is actually easy to do -- here's the basic idea of how to do it.  This logic would probably be best put into the BlogBasePage file in the BE core (Web\Controls\BlogBasePage.cs).

BE does have the capability to display posts for any particular author or blogger.  A modification can be made in the main default.aspx file to display posts by author depending on what subdomain the visitor has come to the site under.

Making these two changes might only require 30 minutes of time or less (once you have a feel for BE).

Nov 27, 2009 at 1:09 AM

Thanks for the post BenAmada, much appreciated!