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

Add Subheading to block title #72

Open lassnj opened 3 years ago

lassnj commented 3 years ago

If a block (like activity results) has a heading, it should be displayed in the block title to be able to select the correct block if more blocks of the same type are added.

grafik

Arantor commented 3 years ago

It's an interesting idea, but unfortunately this is not something I can realistically support consistently for blocks; there is no consistent 'find heading' - as far as I remember that heading is part of the block content, not the block's title.

You should be able to customise the block's normal title, though, and add that heading yourself - it's just not something I'm realistically going to be able to add programmatically, and I'm not sure I'd want to, to be honest, without trying to detect every known block type and whether it has a heading that can be included or not (and then make a configuration item for it because for every case where it is added, someone else will want it removed)

lassnj commented 3 years ago

This is a moodle core block, the problem exists only, when I use multiblock as they all have the same name and I can't see which of them I actually want to view in the accordion display option. Would it be possible to implement a user specific name so that the user can define how to name the blocks in the list of multi-block?