HTML (on cohorts)

Blocks ::: block_cohortspecifichtml
Maintained by Picture of Ulm UniversityUlm University, Picture of Kathrin OsswaldKathrin Osswald, Picture of Alexander BiasAlexander Bias
This HTML block provides the possibility to selectively display the block to members of specific cohorts.

HTML (on cohorts) v3.7-r1

Moodle 3.7
Released: Friday, June 21, 2019, 3:30 PM



Release v3.7-r1

  • 2019-06-17 - Adjusted lib.php due to upstream changes in block HTML.
  • 2019-06-17 - Prepare compatibility for Moodle 3.7.

Release v3.6-r1

  • 2019-01-15 - Added newly introduced core function "get_content_for_external".
  • 2019-01-15 - Check compatibility for Moodle 3.6, no functionality change.
  • 2018-05-12 - Changed travis.yml due to upstream changes.

Release v3.5-r1

  • 2018-05-28 Fixed PHPDoc errors.
  • 2018-05-28 Added hr to all possible cases to separate content from cohort restriction info.
  • 2018-05-25 Improved Behat tests slighty and added new scenarios.
  • 2018-05-25 Changed Behat tests due to changes in the parent block_html.
  • 2018-05-25 Check compatibility for Moodle 3.5, no functionality change.

Release v3.4-r2

  • 2018-05-16 Implement Privacy API.
  • 2018-04-11 Updated

Release v3.4-r1

  • 2018-04-10 Prepare compatibility for Moodle 3.4, no functionality change.

Release v3.3-r1

  • 2018-04-06 Prepare compatibility for Moodle 3.3, no functionality change.

Release v3.2-r4

  • 2018-03-29 Added cohorts check for file serving.
  • 2018-03-21 Improved displaying of blocks depending on editing mode and ability to edit the block instance.
  • 2018-03-20 Improved SQL statement for function block_cohortspecifichtml_cohorts_is_member.
  • 2018-03-20 Minor improvements to language file and behat tests.

Release v3.2-r1 - v3.2-r3

  • 2017-12-19 Initial version.

Version information

Version build number
Version release name
Stable version
MD5 Sum
Supported software
Moodle 3.7
  • Latest release for Moodle 3.7

Version control information

Version control system (VCS)
VCS repository URL
VCS tag

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.