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.
Sorry if this is already handled, or there is an easy way to get this to work that doesn't involve code changes.
This module is a great tool for your UI grab bag of tools. If I could figure out how to cleanly have the users choice of filter drive the Context module, then it would open up control over many new aspects of sites.
Thanks for all the effort on this module. It's great!
Comments
Comment #1
RdeBoerHi Christian,
Thanks for the lovely feedback.
Sounds like a useful extension you have in mind.
So that I get my brain around this... What use-case in particular where you thinking of when using a Global Filter to drive a Conext?
Rik
Comment #2
nally CreditAttribution: nally commented@RdeBoer,
(nice to meet you).
I use GlobalFilter to effect Views, but I thought it would be nice to use the same setting to effect block layout. But context is a powerful tool for modifying all sorts of things (theme etc.)
But block layout and selection is what I had in mind.
Comment #3
RdeBoerI'm teased by this concept, but haven't been able to set aside any time for this yet...
Comment #4
nally CreditAttribution: nally commentedPerhaps this module would help?
https://drupal.org/project/context_var
Comment #5
RdeBoerAnyone game enough to supply a patch?
Comment #6
designguru CreditAttribution: designguru commentedI would love to see global filters be able to set a context - has anyone done any work on this?? :)
q./
Comment #7
RdeBoerThis idea is great and could work. However not via https://drupal.org/project/context_var (#4), as it would result in multiple users all affecting the same site-wide variable.
One person sets it to X and before their context can be set, another person may set the context condition to Y, so the first persons context is not activated.
However the https://drupal.org/project/context_session module may provide an avenue to implement this properly, as suggested by designguru in private communication.
Comment #8
RdeBoerFixed in 7.x-1.13