You are here

README.txt in Collapsiblock 6

Drupal collapsiblock.module README.txt
==============================================================================

Makes blocks collapsible.


Requirements
------------------------------------------------------------------------------
This module is written for Drupal 5.0 and requires the jstools.module to be
enabled.


Theme Support
------------------------------------------------------------------------------

Collapsiblock needs to know the page element in which  block container, block 
titles (subjects) and block contents are enclosed, something that varies by 
theme.

Collapsiblock tries to support out-of-the-box the majority of theme by using
flexible jQuery selector. But for some themes it might not work.

If Collapsiblock doesn't work, go to the /admin/build/themes/settings.
You can set here your own jQuery selector for the different elements in blocks.

To determine this, look in the theme for the place where blocks are generated.
For PHPTemplate-based themes, look for a block.tpl.php file.

Identify the line in the template or theme file where block titles are
generated and other element, and look for the enclosing elements.

For example, in garland's block.tpl.php, the relevant line for the title is:

  <h2><?php print $block->subject ?></h2>

In this case, the jQuery selector will be 'h2'.

File

README.txt
View source
  1. Drupal collapsiblock.module README.txt
  2. ==============================================================================
  3. Makes blocks collapsible.
  4. Requirements
  5. ------------------------------------------------------------------------------
  6. This module is written for Drupal 5.0 and requires the jstools.module to be
  7. enabled.
  8. Theme Support
  9. ------------------------------------------------------------------------------
  10. Collapsiblock needs to know the page element in which block container, block
  11. titles (subjects) and block contents are enclosed, something that varies by
  12. theme.
  13. Collapsiblock tries to support out-of-the-box the majority of theme by using
  14. flexible jQuery selector. But for some themes it might not work.
  15. If Collapsiblock doesn't work, go to the /admin/build/themes/settings.
  16. You can set here your own jQuery selector for the different elements in blocks.
  17. To determine this, look in the theme for the place where blocks are generated.
  18. For PHPTemplate-based themes, look for a block.tpl.php file.
  19. Identify the line in the template or theme file where block titles are
  20. generated and other element, and look for the enclosing elements.
  21. For example, in garland's block.tpl.php, the relevant line for the title is:
  22. subject ?>

  23. In this case, the jQuery selector will be 'h2'.