Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here's a context getter that switches the theme. I couldn't figure out a way without using hook_context_getter though. ideas would be great.
Comment | File | Size | Author |
---|---|---|---|
theme-switcher-context-getter.patch | 5.07 KB | dmitrig01 | |
Comments
Comment #1
dang.artman CreditAttribution: dang.artman commentedIt would be great if you could switch the theme based on the context!!!
Comment #2
Pasqualle6.x-1.x?
Comment #3
yhahn CreditAttribution: yhahn commentedI'm going to postpone this functionality until 2.x stable is out and we branch for 3. Aside from the fact that the _getter hook has been deprecated, context currently has very poor support for theme switching anyway -- the block visibility reaction doesn't support multiple region sets (as defined by different themes) and this deficiency is not one worth tearing apart 2.x for.
Let's put this high on our list for things to capture in 3.x.
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedWhat version of context is this on?
I am using version 2 now.
I would like to be able to setup context per theme also. That would be very helpful!
Thanks
Comment #5
designerbrent CreditAttribution: designerbrent commentedThis is high on my list.
Any chance this will move in the the 3.x scope since I'm seeing 3.0 already has a beta4 on it.
Comment #6
okokokok CreditAttribution: okokokok commentedI'm looking for exactly this functionality.
First tried the Subsites module, now trying the Sections module, still to no avail. If I find a solution I will update here.
Also the Context Reaction Theme module is not sufficient, #838572: context Active Theme and Taxonomy.
There's also #293736: Integration with Sections module, but that's not really enough.
Changing theme depending on context seems at its place within the Context module itself.
Comment #7
xurizaemonMoving to 3.x-dev and un-postponing (as per #3 above), as it seems unlikely to happen in 2.x at this point.
Note existence of http://drupal.org/project/context_reaction_theme (which guaka mentioned).
Definitely seems a natural fit for core Contexts module though.
Comment #8
mlsamuelson CreditAttribution: mlsamuelson commentedSo, taking the changes to Context that have occurred between 1.x and 3.x, and looking at updating the patch, I came to the conclusion that what we'd end up with would get us something very similar to what we already have in http://drupal.org/project/context_reaction_theme...
Comment #9
Eric_A CreditAttribution: Eric_A commentedContext Reaction: Theme never saw a Drupal 7 release. Anyway, should this be considered postponed, active, or won't fix?
Comment #10
IckZ CreditAttribution: IckZ commentedactive ;)
Would be nice to get an d7 stable release of Context Reaction: Theme