Jump to:

1384 Posts in 493 Topics by 522 members


SilverStripe Forums » Themes » User theme changer

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1204 Views
  • mexik
    Community Member
    15 Posts

    User theme changer Link to this post


    I'd like to have a theme changer on my website.

    What I want basically is to give users an ability to change my website theme if they want to, so I could get two different type of customers (for example: one could be very simple and the other one could have a lot of things like glamour style).

    So ... is it possible to make something like that ?

  • Bambii7
    Community Member
    254 Posts

    Re: User theme changer Link to this post

    Ahhh theme selectors nooooo
    I think you could do some thing with a session variable and maybe the _conifg.php in mysite.
    You set them theme inside _config, so you'd need some basic forms on Page.php that set a variable. Then maybe in the _config have

    $mytemplate = Session::get("mythemevariable");
    if($mytemplate) {
    } else {

    Not 100% if that'll work

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.