Just wondering how this works in further detail. With this trigger any arbitrary context to evaluate regardless of the conditions set on the given context? Or is this just a way to trigger another context to evaluate based on the current context? In other words, the it acts as a more complex condition for a second context.

Thanks!
- Scott

Comments

baldwinlouie’s picture

Scott,

The module is actually much simpler than that. We needed to set some arbitrary pieces of context which can be used in templates or themes. By using context as reaction, when you set the "namespace", "name" and "value", that piece of information will be available by doing a context_get().

The use case which drove me to write this is:
- On the SETI site, we use flags to feature content in the carousels. There are three different carousels for the three different "Homepage" variants.
- Administrators will assign content to each defined flag.
- Using context, when one of the three homepages are triggered, I set a context as reaction value to identify which flag to use. For example, on the main homepage, set fid = 3.
- Then we are able to generate the carousel based on the flag.

We also used it to tell the templates to theme the right column differently based on node type...views type..etc. For example, on a node page, the right hand column is themed differently than the right column on a views page. We were able to use this to move things around in the template.

Hope this helps.

baldwinlouie’s picture

Status: Active » Closed (fixed)