README.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Current state of Context for Drupal 7
  2. -------------------------------------
  3. Context for D7 is a straight port of Context 3.x from D6. There are no major
  4. API changes and any exported contexts from D6 should be compatible with the D7
  5. version. You will need the latest CTools (as of Sept. 16 2010) from here:
  6. - http://github.com/sdboyer/ctools
  7. ### Working
  8. - all conditions except node taxonomy condition
  9. - all reactions
  10. - context UI
  11. - context layouts
  12. - inline editor (see the context_ui README file for info on enabling)
  13. ### Expect API changes
  14. - node taxonomy condition to generic field condition for entities
  15. Context 3.x for Drupal 7.x
  16. --------------------------
  17. Context allows you to manage contextual conditions and reactions for
  18. different portions of your site. You can think of each context as
  19. representing a "section" of your site. For each context, you can choose
  20. the conditions that trigger this context to be active and choose different
  21. aspects of Drupal that should react to this active context.
  22. Think of conditions as a set of rules that are checked during page load
  23. to see what context is active. Any reactions that are associated with
  24. active contexts are then fired.
  25. Installation
  26. ------------
  27. Context can be installed like any other Drupal module -- place it in
  28. the modules directory for your site and enable it (and its requirement,
  29. CTools) on the `admin/modules` page.
  30. You will probably also want to install Context UI which provides a way for
  31. you to edit contexts through the Drupal admin interface.
  32. Example
  33. -------
  34. You want to create a "pressroom" section of your site. You have a press
  35. room view that displays press release nodes, but you also want to tie
  36. a book with media resources tightly to this section. You would also
  37. like a contact block you've made to appear whenever a user is in the
  38. pressroom section.
  39. 1. Add a new context on admin/structure/context
  40. 2. Under "Conditions", associate the pressroom nodetype, the pressroom view,
  41. and the media kit book with the context.
  42. 3. Under "Reactions > Menu", choose the pressroom menu item to be set active.
  43. 4. Under "Reactions > Blocks", add the contact block to a region.
  44. 5. Save the context.
  45. For a more in-depth overview of the UI components, see the Context UI
  46. `README.txt`.
  47. Hooks
  48. -----
  49. See `context.api.php` for the hooks made available by context and `API.txt` for
  50. usage examples.
  51. Maintainers
  52. -----------
  53. - yhahn (Young Hahn)
  54. - jmiccolis (Jeff Miccolis)
  55. - Steven Jones
  56. Contributors
  57. ------------
  58. - alex_b (Alex Barth)
  59. - dmitrig01 (Dmitri Gaskin)
  60. - Pasqualle (Csuthy Bálint)