Edit mode theme

Permalink
Hi,

I am designing a theme for a mobile device and I want to be able to make an edit mode theme which basically uses no css and is just for editing the content.

Anyone know how I can detect edit mode and alter the theme being used?

The ability to remove and add a css file to the header would probably work as well, I'm ok at adding a css file to the header but not sure if we can remove it through code?

Cheers
Al

engagingit
 
olliephillips replied on at Permalink Best Answer Reply
olliephillips
Edit mode :

##
if ($c->isEditMode()){
 Your code here
}
##


Change theme :

##
$v = View::getInstance();
$v->setTheme($yourSiteTheme);
##


Hope that helps!
engagingit replied on at Permalink Reply
engagingit
Fantastic!!!

Cheers mate, much appreciated