Altering appearance/behavior of default blocks

Altering appearance/behavior of default blocks

per Bourke Hutchinson -
Nombre de respostes: 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
Mitjana de qualificacions: -
En resposta a Bourke Hutchinson

Re: Altering appearance/behavior of default blocks

per Tim Hunt -
Imatge Core developers Imatge Documentation writers Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge 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.
En resposta a Tim Hunt

Re: Altering appearance/behavior of default blocks

per 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?