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.
It would be nice if one could disable regions as a context reaction
Comment | File | Size | Author |
---|---|---|---|
#2 | 1079108.patch | 4.79 KB | e2thex |
#1 | 1079108.patch | 4.77 KB | e2thex |
Comments
Comment #1
e2thex CreditAttribution: e2thex commentedI have attach a patch to add the reaction. Having a little problem with the test (it currently fails :(), will revisit the test later
Comment #2
e2thex CreditAttribution: e2thex commentedSo part of the problem was that that patch did not work but the test is still failing
Comment #3
tekante CreditAttribution: tekante commentedIt is unclear to me why the test is failing. When I add some debugging statements and look at the output I can see that the testcontext is enabled and that the content region is being unset via the execution of the plugin but the content still appears on the page as simpletest sees is.
You can add the following to see that the context is active
And putting the following on line 40 of context_reaction_region.inc
Shows that the plugin is running and unsetting the content region when inspecting the page fetched by the test even though the content region content is present right below the message.
Comment #4
febbraro CreditAttribution: febbraro commentedGot the test working. Committed.
http://drupalcode.org/project/context.git/commit/ecc16d7
Comment #5
mrtalloy CreditAttribution: mrtalloy commentedHow do I install this to use it?
Very good idea by the way!
Comment #6
tekante CreditAttribution: tekante commented@mrtallow - the latest 7.x-3.x-dev release contains this code for use or you can use git to keep up with the absolute latest between dev snapshots
Comment #7
mrtalloy CreditAttribution: mrtalloy commentedBril! It's working great - I've tried it with views and with pages and it works really well on both
This is a really good module. Have you got more plans with its functionality?
I wish I knew how to write these things so I could contribute. Anyway thanks a lot, this is awesome!
Comment #8
mrtalloy CreditAttribution: mrtalloy commentedfixed*
Comment #9
febbraro CreditAttribution: febbraro commentedComment #10
ntigh52 CreditAttribution: ntigh52 commentedHi to all,
I instal the Context Module I changed and added the files with the bug, but I dont know how to instal the patch.
I dont know how to solve that issues:
1. I deleted regions but the header and footer still Appear.
2. I can change blok position on the reaction.
3. What is the easy way to define a different theme to spicific content type?
Can anyone help me to solve my problem?
please....
Comment #11
sorensong CreditAttribution: sorensong commentedSoooo has this been added? I'm not able to 'disable regions'.
Comment #12
tekante CreditAttribution: tekante commented@sorensong - yes this has been added, in the reaction you should see a region option and when choosing it should be able to select the region(s) you want to disable for each of your active themes when the context is active.