You are here

README.txt in Block reference 7

Same filename and directory in other branches
  1. 7.2 README.txt
Block reference README

CONTENTS OF THIS FILE
----------------------

  * Introduction
  * Installation
  * Usage
  * Theming
  * Notes


INTRODUCTION
------------
Defines a field type Block reference which creates a relationship to a block and
allows the block to be displayed as the content of the field.

Project page: http://drupal.org/project/blockreference.


INSTALLATION
------------
Install and enable the Block reference module.
For detailed instructions on installing contributed modules see:
http://drupal.org/documentation/install/modules-themes/modules-7


USAGE
-----
Block reference fields will now be available in the Field UI.
For detailed instructions on using the Field UI see:
http://drupal.org/documentation/modules/field-ui


THEMEING
--------
To assist in themeing blocks that are displayed using the block reference
module, the block reference element is available in the $variables array in
template_preprocess_block().

The element can be found at:

    $variables['elements']['#blockreference_element']

Note that the element will not be there for non-blockreference blocks so you
should first check the existence of the element before using its contents.


NOTES
-----
* Relationships are saved using the block's `bid`, not its delta +
  module.
* Block configuration visibility settings are respected since version
  7.x-1.14. If a referenced block does not appear when viewing the node,
  check the block's visibility settings on /admin/structure/block. Note
  that visibility settings are evaluated regardless of whether the
  block is assigned to a region.

File

README.txt
View source
  1. Block reference README
  2. CONTENTS OF THIS FILE
  3. ----------------------
  4. * Introduction
  5. * Installation
  6. * Usage
  7. * Theming
  8. * Notes
  9. INTRODUCTION
  10. ------------
  11. Defines a field type Block reference which creates a relationship to a block and
  12. allows the block to be displayed as the content of the field.
  13. Project page: http://drupal.org/project/blockreference.
  14. INSTALLATION
  15. ------------
  16. Install and enable the Block reference module.
  17. For detailed instructions on installing contributed modules see:
  18. http://drupal.org/documentation/install/modules-themes/modules-7
  19. USAGE
  20. -----
  21. Block reference fields will now be available in the Field UI.
  22. For detailed instructions on using the Field UI see:
  23. http://drupal.org/documentation/modules/field-ui
  24. THEMEING
  25. --------
  26. To assist in themeing blocks that are displayed using the block reference
  27. module, the block reference element is available in the $variables array in
  28. template_preprocess_block().
  29. The element can be found at:
  30. $variables['elements']['#blockreference_element']
  31. Note that the element will not be there for non-blockreference blocks so you
  32. should first check the existence of the element before using its contents.
  33. NOTES
  34. -----
  35. * Relationships are saved using the block's `bid`, not its delta +
  36. module.
  37. * Block configuration visibility settings are respected since version
  38. 7.x-1.14. If a referenced block does not appear when viewing the node,
  39. check the block's visibility settings on /admin/structure/block. Note
  40. that visibility settings are evaluated regardless of whether the
  41. block is assigned to a region.