Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » View Alternative Theme

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1542 Views
  • lukehumble
    Avatar
    17 Posts

    View Alternative Theme Link to this post

    I am trying to setup a new theme for my site but have noticed that l cannot view this theme unless l make the hard-coded change.
    Is it therefore possible to view the page using the new theme by calling it through the url such as:

    http://www.mysite.com/?stage=Stage&theme=MyTheme

    Thanks.

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: View Alternative Theme Link to this post

    AFAIK the only way to enable a theme is to do

    SSViewer::set_theme('my_theme');

    in _config.php of your project folder.

    Are there any other ways, anyone?

  • lukehumble
    Avatar
    17 Posts

    Re: View Alternative Theme Link to this post

    It would make great sense to be able to view a theme that you are working on without having to make it live as this means you need to have a separate install just to develop a theme for the same content of your site.

    1542 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.