Define the States
States available in Context
States available in UI

Allows administrators to define universal states that can then be used by Context. Also, provides a permission to enable site editors to toggle these states through a UI.

Example

You are setting up an event application and you want to allow site editors to mark the event as "Sold Out", which then uses Context to hide/show relevant content based on the "Sold Out" state.

  1. Add the "Sold Out" state in admin/structure/states/define (you can define multiple states as well).
  2. In your context, select the "States" condition and the "Sold Out" state. Set your reactions accordingly, e.g. 1. use "Blocks" to show content based on the state, 2. use "Regions" to hide regions based on the state, etc.
  3. Users with the "Edit States" permission can simply toggle between states at any time at admin/structure/states.

Dependencies

Context
Chaos Tools 1.7 or higher (requirement for Context)

Tutorial

Video Tutorial (2.5 min.)

Support

This project sponsored by

Project information

Releases