Closed (fixed)
Project:
Context Respect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2011 at 15:34 UTC
Updated:
22 Mar 2011 at 14:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
ngmaloney commentedI stand corrected. That patch does not work (when saving context). Working on another.
Comment #2
ngmaloney commentedAttached is a working D7 port. I basically copied the new D7 context_reaction_block.inc from context over to this module and refactored the code that checks path and role.
Comment #3
kevinwal commentedThanks ng, reviewing and testing patch.
Comment #4
ngmaloney commentedI found another bug with my D7 port. Rather than continually submitting patches I put it on github. https://github.com/ngmaloney/context_respect
Comment #5
kevinwal commentedOk, those changes were added to the 7.x dev version here as well.
Comment #6
ngmaloney commentedExcellent. I added in some code so that each block can be overridden via setting a persistant variable. This is useful if you wish to have context respect handle a core role based setting but not a core page based setting (or vice versa). The new code checks for either 2 variables:
- context_respect_override_role which contains array('$block_id' =>'$value')
- context_respect_override_page which contains array('$block_id' =>'$value')
ex: Lets say you wanted context to respect role based settings but ignore page based settings. Somewhere in code you would set the following:
I didn't provide an interface yet but these variables can be set via settings.php, strongarm/features, or a module.install.