Module Description
Collapsiblock makes all individual Drupal blocks collapsible. To show/hide the content of a block just click on its title.
Optionally, the last state of blocks is saved in a cookie for each user.
This module is intended for site-builders who are new to Drupal with relatively simple needs. We will try to accomodate feature requests and options but will balance those with the need for a simple UI.
Version 4 - Recommended
4.x introduces some changes on 3.x that may break site themes/behaviours.
Most notably there is currently no choice of animation type, slide is the only one available, but it completely removes the jQuery dependency and uses a *much* smaller (therefore faster) library alexmcarthur/slide-element for the slide animation.
Also the menu active trail feature now works correctly so sites that accidentally have it turned on may see a small change in behaviour where menu blocks that contain a link to the current page are forced to remain open. You can go back to the behaviour your site expects by unchecking that setting.
A CDN is used for appraisal purposes but you should install the slide-element javascript library in your site if you decide to use it. Right click and save this link in your web root as /libraries/slide-element/inde.umd.js.
Versions 2 and 3
Versions 2 and 3 use title_prefix and title_suffix to wrap each block title in a custom wrapper. As most contributed themes include these elements in their block templates, this version supports many more themes out-of-the-box and is thus much more suitable for Drupal beginners than prior versions.
This version also includes a few new features, such as the ability for blocks that are normally collapsed to be open when part of the active menu trail [edit: that particular functionality was broken, it is properly introduced in V4].
* 3.x supports Drupal 8 and 9 and may continue to be used by sites that have it installed.
* 7.x-2.x is the recommended Drupal 7 version - all improvements except for major bugs will go in this version
Version 1
The 1.x version uses a global per-theme setting to determine which jQuery selectors to use to target blocks, their titles and bodies. For this reason this version does not support as many themes out-of-the-box, but may provide a little more flexibility than 7.x-2.x.
* 7.x-1.x is stable may continue to be used by sites that have it installed.
Optionally, the last state of blocks is saved in a cookie for each user.
This module is intended for site-builders who are new to Drupal with relatively simple needs. We will try to accomodate feature requests and options but will balance those with the need for a simple UI.
Version 4 - Recommended
4.x introduces some changes on 3.x that may break site themes/behaviours.
Most notably there is currently no choice of animation type, slide is the only one available, but it completely removes the jQuery dependency and uses a *much* smaller (therefore faster) library alexmcarthur/slide-element for the slide animation.
Also the menu active trail feature now works correctly so sites that accidentally have it turned on may see a small change in behaviour where menu blocks that contain a link to the current page are forced to remain open. You can go back to the behaviour your site expects by unchecking that setting.
A CDN is used for appraisal purposes but you should install the slide-element javascript library in your site if you decide to use it. Right click and save this link in your web root as /libraries/slide-element/inde.umd.js.
Versions 2 and 3
Versions 2 and 3 use title_prefix and title_suffix to wrap each block title in a custom wrapper. As most contributed themes include these elements in their block templates, this version supports many more themes out-of-the-box and is thus much more suitable for Drupal beginners than prior versions.
This version also includes a few new features, such as the ability for blocks that are normally collapsed to be open when part of the active menu trail [edit: that particular functionality was broken, it is properly introduced in V4].
* 3.x supports Drupal 8 and 9 and may continue to be used by sites that have it installed.
* 7.x-2.x is the recommended Drupal 7 version - all improvements except for major bugs will go in this version
Version 1
The 1.x version uses a global per-theme setting to determine which jQuery selectors to use to target blocks, their titles and bodies. For this reason this version does not support as many themes out-of-the-box, but may provide a little more flexibility than 7.x-2.x.
* 7.x-1.x is stable may continue to be used by sites that have it installed.
Module Link
Project Usage
5060
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
Collapsiblock module aims to solve the issue of making all individual Drupal blocks collapsible with the option to save the last state of blocks in a cookie for each user, catering to site-builders new to Drupal with relatively simple needs.
Data Name
collapsiblock