Copied to clipboard

Flag this post as spam?

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


  • Nikolay Yeryomenko 7 posts 97 karma points
    Sep 08, 2018 @ 13:03
    Nikolay Yeryomenko
    0

    Does Umbraco support development of themes like PHP CMS (Drupal, WordPress)?

    The question I have is it possible to develop a two themes for one website and use one content with each theme?

  • Ben Palmer 176 posts 842 karma points c-trib
    Sep 08, 2018 @ 19:47
    Ben Palmer
    1

    Hi Nikolay,

    It's not something that's set up out-of-the-box because unlike WordPress, for example, you don't have a set of fields in common. This would be quite easy to set up in your CMS however.

    Without thinking about it too much, I'd create a site setting that has a dropdown which allows you to choose the theme name.

    Then in your views folder, create a folder for each theme. All you'd need to do in your template then, is use the theme name to get the relevant CSS and if your markup changes, use the theme name again to get the relevant partial from the correct folder.

    You can probably get a little smarter but hopefully it should give you a starting idea to get you on your way.

    Thanks,

    Ben

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Sep 10, 2018 @ 01:02
    Nicholas Westby
    0

    Not really out of the box. However, Umbraco does allow you to run multiple websites using the same Umbraco install (though, that may not have been exactly part of your question).

    We were able to do separate themes for these two sites that are hosted on the same Umbraco install:

    IIRC, we mainly just have a drop down for the theme, then we output a reference to the CSS file appropriate to that theme on the page, and everything will be styled accordingly.

    There are some theme-specific widgets and other nuances of that sort to worry about, but that's the short version.

    There is also a sort of theme marketplace from one company: https://uskinned.net/

    I don't know that they can be used with multiple sites in the same install (might be that they can), but at least they're quick to install/configure.

  • John Bergman 483 posts 1132 karma points
    Sep 10, 2018 @ 05:56
    John Bergman
    0

    To add to this, it also depends on how different your themes are, if it is simply color palette, its pretty easy to do with stylesheets; we do that now on upventur.com (light vs dark).

    We are building towards themes with different layouts, though that is a bit more complex and requires more lifting in the backend to get it working.

    If you haven't looked at uskinned, you should - their products are pretty good, and you could use them as a starting point.

Please Sign in or register to post replies

Write your reply to:

Draft