catalyst / moodle-block_multiblock

Moodle plugin which allows you to embed multiple blocks within a single block region using different formats including tabs and accordions
GNU General Public License v3.0
12 stars 12 forks source link

Multiblock showing only when relevant #99

Open cdipe opened 1 year ago

cdipe commented 1 year ago

The Multiblock shows the headers of blocks that is unavailable to the user. That makes it's usability quite limited.

Example: The blocks Sharing Cart and Mass actions are normally only visible to editing teachers, and only when editing is active. But when having put Sharing Cart and Mass actions in a Multiblock:

  1. The Multiblock is visible all the time (editing active and editing inactive), also to students
  2. The multiblock is showing the Sharing Cart and Mass actions headers all the time (editing active and editing inactive), also to students

How it should be:

  1. Multiblock should show only blocks that are available to the user
  2. When the Multiblock contains no blocks available to the user, the Multiblock should not show at all

(Moodle 4.1.1 with Multiblock 1.3.6 2023012500)

danmarsden commented 1 year ago

thanks for the report - I agree it would be nice to have a way to hide blocks when the content of the block is empty - if you have development capabilities feel free to submit a pull request!

thanks!