Context States
Categories
Component ID
2135843
Component name
Context States
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
1199
Component created
Component changed
Component body
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.
- Add the "Sold Out" state in admin/structure/states/define (you can define multiple states as well).
- 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.
- 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.)

