Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Michael Flynn 3 posts 23 karma points
    Oct 29, 2015 @ 13:17
    Michael Flynn

    Multi-Tenant Sites with same code base

    Is Umbraco capable of handling mutliple sites with the same code base but change the look and name depending on the host name?

  • Casper 69 posts 306 karma points
    Oct 30, 2015 @ 23:14

    Not sure i get your needs, but if i do then the short answer is yes :)

    A couple of way to do it:

    You could create a set of templates that each "Site" can use.

    Another approach is to create one or more properties on your "Site" doctype" that indicate what look the site need, and then make one template render what you want depending on those properties. A simple example that show all about this approach is:

    Both and have built in theme'ing, so maybe check out their approach.

  • Michael Flynn 1 post 71 karma points
    Oct 30, 2015 @ 23:42
    Michael Flynn

    Ill have to look more into but here is what I did with a custom site I control.

    They share same codebase and files, it just changes colors, graphics, etc based on a lookup in the database based on the host name.

    With Umbraco I would like to do the same thing where it's very little maintenance to manage multiple sites cause everyone shares the same code base.

    Does what you mention about require multiple databases per site?

  • Casper 69 posts 306 karma points
    Oct 31, 2015 @ 18:18

    Yes, it's doable in one install, hence one database :)

Please Sign in or register to post replies

Write your reply to: