Altering appearance/behavior of default blocks

Altering appearance/behavior of default blocks

by Bourke Hutchinson -
Number of replies: 3
Anyone have an idea on how to alter the default blocks that appear when a new course is created?

I have made the blocks I want by default "sticky", however when a new course is created, I get a lot of duplicates by default and then have to go in and delete those duplicates manually.

Any suggestions would be greatly appreciated.



Thanks,

BH
Average of ratings: -
In reply to Bourke Hutchinson

Re: Altering appearance/behavior of default blocks

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You can do this by editing the config.php file - the instructions are in the file called config-dist.php. Not very user-friendly, but it works.
Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Altering appearance/behavior of default blocks

by Larry Elchuck -
Hi Tim

If I wanted no blocks by default, other than those assigned as sticky blocks, I think this will work. Am I correct?
$CFG->defaultblocks_override = ' : '; '// Have no blocks by default and use sticky blocks to assign all default blocks;

Will going into the db table mdl_block_instance and deleting all occurrences of existing instances of these blocks only eliminate the non-sticky ones?