Blocks in a course?

Blocks in a course?

by Doug Bott -
Number of replies: 1

Why is it thtat some blocks can be enabled (by me the admininstrator, not students or techers) only from the front page but not from a course? Specifically "main menu" (but noticed with others) Right now I have to got to Front Page, add the block then got to the settings make it available everywhere (which I do not want to do) then go turn it of picemeal throughout the site.

Average of ratings: -
In reply to Doug Bott

Re: Blocks in a course?

by Nathan Robbins -

Hi Doug,

You can replicate the function of the Main Menu block with the Section block, which is configurable per instance. To display the contents of the Main Menu block in a course, configure the block and change the course id to the frontpage id (usually 1), and the section id to 0.

The availablility of any block is controlled by the "applicable_formats()" fuction found in "mysite.com/blocks/blockname/block_blockname.php".