1

Context is great for delivering content to the right part of my site in the right circumstances, in the right order and to the right user.

I'd like to be able to add the ability for a user to toggle Context using a link I create - a button - to cause certain blocks to appear, disappear or be be re-arranged - via Context.

I have researched and experimented for hours and can't find a solution.

In what ways I can I change Context with the press of a button?

2
  • For future questions, don't forget to add 7 or 8 as a tag, so people know what Drupal version you are working with, thx. I answered this assuming you're using Drupal 7
    – No Sssweat
    Commented Apr 28, 2016 at 13:25
  • There is no need to use a tag for the Drupal version. It is enough the version is reported in the question; the tag will be added if the question is pertinent for a Drupal version. For sure, a single tag like context is not much helpful; at that point, it is better to use the version tag, instead of that one.
    – avpaderno
    Commented May 31, 2016 at 4:44

1 Answer 1

0

Context Flag

This module provides integration between the Context and Flag (3.0+ only for the moment, if there is interest in it support for 2.0 may be added later) modules.

When enabled it creates new Context conditions which can be triggered based on the value of one or more Flags applied to nodes, currently active users, or user profile pages.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.