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
    0

    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 70 posts 308 karma points
    Oct 30, 2015 @ 23:14
    Casper
    0

    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: https://our.umbraco.org/projects/collaboration/uskygooglefont/

    Both https://our.umbraco.org/projects/collaboration/merchello/ and https://our.umbraco.org/projects/starter-kits/articulate/ 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
    0

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

    http://basketball.exposureevents.com http://volleyball.exposureevents.com

    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 70 posts 308 karma points
    Oct 31, 2015 @ 18:18
    Casper
    0

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

Please Sign in or register to post replies

Write your reply to:

Draft