Talk:Blocks 2.0

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Blocks 2.0.

What pages?

I have seen several references to Blocks being able to be placed anywhere, I assume that means the left, the right and the centre, on "certain pages" like My Moodle. What pages? Is there a list of these pages anywhere? Is it theme dependent? I understand that this is an issue with Moodle 2 Docs, there are not enough people to write them, but I cannot find anything even in the Moodle Dev Docs... or am I looking in the wrong place?--Colin Fraser 21:24, 6 August 2011 (WST)

Colin (sorry if I am responding in the wrong place/wrong way - still not sure of the protocol with Talk pages -the only place you can have a block in the centre IS the MyMoodle page - anywhere else it is left or right. --Mary_Cooch
Actually, Mary's answer is an oversimplification. Where blocks go in Moodle 2.x is mostly controlled by the theme. The theme can define whatever regions it likes on each page. If you look at the file theme/xxx/config.php in any theme you will see a $THEME->layouts = array. And for each layout, there will be a regions property. In practice, most themes are boring and just use 'region-pre' and 'region-post' which normally corresponds to left and right.
Then, certain pages can additionally add extra block regions, in addition to the ones provided by the theme. At the moment, I think it is only the my Moodle page that does this, and Mary suggests.--Tim Hunt 19:31, 8 August 2011 (WST)

I am confused by the fact that there are 2 blocks pages - this one Blocks 2 and then the other one - just blocks! --Mary Cooch 17:31, 26 August 2011 (WST)

You're right Mary, it is confusing! How about if I move stuff from Blocks 2.0 to Blocks then delete the Blocks 2.0 page? --Helen Foster 17:35, 26 August 2011 (WST) Thanks Helen --chris collman 21:19, 26 August 2011 (WST)
Yes - we definitely only need one page (the fewer and simpler the better) --Mary Cooch 18:15, 26 August 2011 (WST)