Jump to:

1382 Posts in 491 Topics by 521 members

Themes

SilverStripe Forums » Themes » Controller-function to switch theme in one project

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1486 Views
  • jovoo
    Avatar
    Community Member
    12 Posts

    Controller-function to switch theme in one project Link to this post

    Hi there,

    I'm workin on a project that suposed to switch the themes in two different categorys. Now I'm wondering how to do that, because each "root-category" has one subcategory with another subcategory with many pages. I thought I can write a function for the the Page_Controller to return one of the two root-categorys I'm currently in. So the Page.php would have an if-clause to include theme_1 or theme_2.

    Is that possible and how? Or is there a better solution?

    Thank you for help!
    jovoo

  • jovoo
    Avatar
    Community Member
    12 Posts

    Re: Controller-function to switch theme in one project Link to this post

    No ideas? Or is my question just too newbie-like? At the beginning I thought it would be possible to have different folders in "themes" like "mysite" and "mysite_theme1" and "mysite_theme2" but it didn't work because everything has to change. Content width, background-color...

    hmmm.... :-/

    1486 Views
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.