Moodle 2.3.3 - Activities Block Not Visible by Default

Moodle 2.3.3 - Activities Block Not Visible by Default

by Gary Harris -
Number of replies: 6

On our Moodle 1.9.5 installation, the Activities block always shows when viewing a course. However, on our new 2.3.3 installation, you have to add the block to each individual course in order for it to show. Is there a way to have it on all the time like in 1.9.5? I checked the Manage Blocks section and the "eye" is turned on (i.e. set to visible).

Thanks,

Gary

Average of ratings: -
In reply to Gary Harris

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

by Gary Harris -

Anybody have a clue? smile

In reply to Gary Harris

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

by Gary Harris -

Anybody?

In reply to Gary Harris

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

In Moodle 1.9, the Activities block was defined as one of the default blocks to display for the "topics" and "weeks" course formats. This is hard-coded in the course format code.

In Moodle 2.3, the Activities block is not defined as one of the default blocks to display for the "topics" or the "weeks" course formats. Again, this is hard-coded in the course format code.

In Moodle 1.9, you could force blocks to display using the "sticky" blocks settings. That would allow you to define blocks you wanted displayed on all course pages.

In Moodle 2.3, this is done differently. You can add a block to a page, and specify that it be displayed on all pages below it. You can even hide it on the page you add it to. If you wanted the block displayed throughout the site, you could add it to the front page, then edit its settings.

Your only other option (not recommeneded) would be to edit the course format code to include the blocks you want by default.

mike

In reply to Mike Churchward

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

by Gary Harris -

Thanks Mike! I really appreaciate it!

Gary

In reply to Mike Churchward

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Actually, I think there are some setting you can define in the config.php file. Look at the description in config-dist.php for instructions.

Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

AH-HA! Tim is correct!

You can also play with these settings in your site's "config.php" file:

//
// These variables define DEFAULT block variables for new courses
// If this one is set it overrides all others and is the only one used.
//      $CFG->defaultblocks_override = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
//
// These variables define the specific settings for defined course formats.
// They override any settings defined in the formats own config file.
//      $CFG->defaultblocks_site = 'site_main_menu,course_list:course_summary,calendar_month';
//      $CFG->defaultblocks_social = 'participants,search_forums,calendar_month,calendar_upcoming,social_activities,recent_activity,course_list';
//      $CFG->defaultblocks_topics = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
//      $CFG->defaultblocks_weeks = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
//
// These blocks are used when no other default setting is found.
//      $CFG->defaultblocks = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
//