This module is just about changing theme based on certain rules. Is this really necessary?

Why not just do an extension module that adds a event called "Change theme to.." to the Rules module?

That way, you will be able to change theme based on all events given by the Rules module and all the plugins it offers, like Token support etc.

Comments

mkalkbrenner’s picture

Title: Rules » Integrate with Rules
Version: 6.x-1.1 » 6.x-2.0-alpha3
Component: Modules » Code / API
Status: Active » Postponed

Sounds interesting but ThemeKey should not depend on Rules. I'm also convinced that not all features of ThemeKey could be realized with Rules.
Nevertheless if someone is interested in the feature that ThemeKey should make some of it's features available to the Rules module, I'll be happy to review an according patch.

Sten-dupe’s picture

Sounds like an awesome idea. If an anonymous user came in from a node/type path and event could be called to provide a one of a number of themes using rules.

mkalkbrenner’s picture

Yes, but switching a theme for anonymous users isn't compatible with drupal's page cache because the entire html is cached after rendering.
That's why I don't recommend theme switching rules based on individual properties for anonymous users ...

candelas’s picture

thanks for your module

i subscribe that it will be interesting to be able to apply a rule when a new term or vocabulary is created or a content is created or deleted...
and it will take adventage of free software by sharing code.

mkalkbrenner’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

Due to the fact that nobody has time to implement this nice to have feature I close to issue to clean up the queue.
Fell free to re-open it if you can provide a patch or order a maintainer to work on it.