Moodle DevCamp 2019 - Idea exchange and progress tracking

Display block content on main section of the course page

 
Picture of Alexander Bias
Re: Display block content on main section of the course page
by Alexander Bias - Thursday, 5 September 2019, 10:16 AM
 
Hi David,

while it's quite impossible and also would not make much sense in my view to let users place blocks "anywhere" on the page, it only requires few lines of code to add a new block region to a theme's layout. So, if you have full control of your theme, for example if you are running your own Boost child theme, you can go directly ahead. As a start, have a look at how block regions are built in Boost on
https://github.com/moodle/moodle/blob/master/theme/boost/config.php#L47 and https://github.com/moodle/moodle/blob/master/theme/boost/layout/columns2.php#L40.

However, given the fact that Moodle HQ has announced long ago that blocks should be discouraged, my more basic question would be:
What do you want to present in this block region, what's the user story which you want to satisfy?

Cheers,
Alex