You are here

README.txt in Context 6.3

Context 3.x for Drupal 6.x
--------------------------
Context allows you to manage contextual conditions and reactions for
different portions of your site. You can think of each context as
representing a "section" of your site. For each context, you can choose
the conditions that trigger this context to be active and choose different
aspects of Drupal that should react to this active context.

Think of conditions as a set of rules that are checked during page load
to see what context is active. Any reactions that are associated with
active contexts are then fired.


Installation
------------
Context can be installed like any other Drupal module -- place it in
the modules directory for your site and enable it (and its requirement,
CTools) on the `admin/build/modules` page.

You will probably also want to install Context UI which provides a way for
you to edit contexts through the Drupal admin interface.


Example
-------
You want to create a "pressroom" section of your site. You have a press
room view that displays press release nodes, but you also want to tie
a book with media resources tightly to this section. You would also
like a contact block you've made to appear whenever a user is in the
pressroom section.

1. Add a new context on admin/build/context
2. Under "Conditions", associate the pressroom nodetype, the pressroom view,
   and the media kit book with the context.
3. Under "Reactions > Menu", choose the pressroom menu item to be set active.
4. Under "Reactions > Blocks", add the contact block to a region.
5. Save the context.

For a more in-depth overview of the UI components, see the Context UI
`README.txt`.


Upgrading from Context 2.x for Drupal 6.x
-----------------------------------------
- Download latest Context 3.x and latest CTools release and place in modules
  directory. Make sure to *remove* the existing Context 2.x directory before
  unpacking Context 3.x. There are stale files in the 2.x branch that need to
  be removed.
- Run `update.php` or `drush updatedb`.
- If your site contains contexts defined in code they will be overridden.
  Re-export them to code again. If you are using any custom conditions or
  reactions, you may need to upgrade or reconfigure them by hand. See `API.txt`
  for instructions on adding and extending plugins in Context.


Hooks
-----
See `context.api.php` for the hooks made available by context and `API.txt` for
usage examples.


Maintainers
-----------

- yhahn (Young Hahn)
- jmiccolis (Jeff Miccolis)
- Steven Jones


Contributors
------------

- alex_b (Alex Barth)
- dmitrig01 (Dmitri Gaskin)
- Pasqualle (Csuthy Bálint)

File

README.txt
View source
  1. Context 3.x for Drupal 6.x
  2. --------------------------
  3. Context allows you to manage contextual conditions and reactions for
  4. different portions of your site. You can think of each context as
  5. representing a "section" of your site. For each context, you can choose
  6. the conditions that trigger this context to be active and choose different
  7. aspects of Drupal that should react to this active context.
  8. Think of conditions as a set of rules that are checked during page load
  9. to see what context is active. Any reactions that are associated with
  10. active contexts are then fired.
  11. Installation
  12. ------------
  13. Context can be installed like any other Drupal module -- place it in
  14. the modules directory for your site and enable it (and its requirement,
  15. CTools) on the `admin/build/modules` page.
  16. You will probably also want to install Context UI which provides a way for
  17. you to edit contexts through the Drupal admin interface.
  18. Example
  19. -------
  20. You want to create a "pressroom" section of your site. You have a press
  21. room view that displays press release nodes, but you also want to tie
  22. a book with media resources tightly to this section. You would also
  23. like a contact block you've made to appear whenever a user is in the
  24. pressroom section.
  25. 1. Add a new context on admin/build/context
  26. 2. Under "Conditions", associate the pressroom nodetype, the pressroom view,
  27. and the media kit book with the context.
  28. 3. Under "Reactions > Menu", choose the pressroom menu item to be set active.
  29. 4. Under "Reactions > Blocks", add the contact block to a region.
  30. 5. Save the context.
  31. For a more in-depth overview of the UI components, see the Context UI
  32. `README.txt`.
  33. Upgrading from Context 2.x for Drupal 6.x
  34. -----------------------------------------
  35. - Download latest Context 3.x and latest CTools release and place in modules
  36. directory. Make sure to *remove* the existing Context 2.x directory before
  37. unpacking Context 3.x. There are stale files in the 2.x branch that need to
  38. be removed.
  39. - Run `update.php` or `drush updatedb`.
  40. - If your site contains contexts defined in code they will be overridden.
  41. Re-export them to code again. If you are using any custom conditions or
  42. reactions, you may need to upgrade or reconfigure them by hand. See `API.txt`
  43. for instructions on adding and extending plugins in Context.
  44. Hooks
  45. -----
  46. See `context.api.php` for the hooks made available by context and `API.txt` for
  47. usage examples.
  48. Maintainers
  49. -----------
  50. - yhahn (Young Hahn)
  51. - jmiccolis (Jeff Miccolis)
  52. - Steven Jones
  53. Contributors
  54. ------------
  55. - alex_b (Alex Barth)
  56. - dmitrig01 (Dmitri Gaskin)
  57. - Pasqualle (Csuthy Bálint)