Context
Context module's development aims to provides developers with a easy way to map site elements like 'sections' and 'features' to Drupal's underlying architecture. It provides a very simple API for storing information about a page as it is being generated. This allows modules and themes to be aware of things that they otherwise would not be able to easily detect.
context_ui
Included is an alpha UI under active development. The add-on module context_ui allows a user to define contexts to structure her site into various layered sections. Contexts can be defined and associated with node types, views, blocks, menu items, etc. This allows users to control block visibility and menu active classes on a per-context-basis rather than patching together many disparate elements. In addition, it provides two hooks that allow other modules to provide context definitions and to integrate with the context_ui administration interface.
context_prefix
Context Prefix is an API module that provides developers with a more intuitive way of hooking into the powerful custom_url_rewrite() function. Inspired by the path-based language contexts used by Internationalization, context_prefix lets you set a context based on a path prefix that is transparently removed from all other players in the Drupal stack. For an example of this module's usage, please see the Spaces module.
Notes:
- As of a recent CVS commit the nomenclature of context and context_ui has changed. Rather than the combination of space, key, value, context now uses namespace, attribute, value.
- This module is under heavy development and should not be considered stable until a release is issued.
- DRUPAL-6--1 is an in progress port to Drupal 6 and contains database changes that are not finalized and do not yet have an upgrade path.
Known issues:
- Currently context_ui's integration against the menu system is based on paths. That means that if you have two menu items with the same path, context_ui will not handle the situation correctly. The only current workaround is to create a path alias for your 2nd menu item. This is obviously not ideal and we're looking into a good solution.
Releases
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2008-Oct-01 | 34.28 KB | Download · Release notes | Development snapshot | |
| 5.x-1.x-dev | 2008-Oct-07 | 35.69 KB | Download · Release notes | Development snapshot | |
