SetTheme() help

Permalink
Hi!

I'm trying to set a Theme with mobile detection. I'm having no trouble with mobile detection. I'm just having a problem getting the mobile theme to set. There really isn't a ton of examples from what I have seen. Here's what I got:

$this->setTheme(PageTheme::getByHandle('rain_mobile'));


I get nothing. Not even an error. I've seen examples of using the ThemeID, but I have no idea where to even find it. I was using an addon to help switch the theme, but it doesn't offer any "View Full website" options so I thought I'd try to build my own.

Thanks for any tips!

rainmaker
 
rainmaker replied on at Permalink Reply
rainmaker
Okay so update. I tried to use $c->setTheme and it just completely changes the theme. Anyway to do it just for that user?
rainmaker replied on at Permalink Best Answer Reply
rainmaker
There really doesn't seem to be an easy way. Andrew's way is the best. Find it here if you really want to do a mobile theme:
http://www.concrete5.org/documentation/how-tos/designers/tutorial-b...