Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

View Alternative Theme


Go to End


3 Posts   1834 Views

Avatar
lukehumble

17 Posts

13 November 2007 at 1:06am

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.

Avatar
dio5

Community Member, 501 Posts

13 November 2007 at 12:20pm

Edited: 13/11/2007 12:20pm

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?

Avatar
lukehumble

17 Posts

14 November 2007 at 11:11pm

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.