General help

 
 
Picture of Gary Harris
Moodle 2.3.3 - Activities Block Not Visible by Default
 

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: -
Picture of Gary Harris
Re: Moodle 2.3.3 - Activities Block Not Visible by Default
 

Anybody have a clue? smile

 
Average of ratings: -
Picture of Gary Harris
Re: Moodle 2.3.3 - Activities Block Not Visible by Default
 

Anybody?

 
Average of ratings: -
Picture of Mike Churchward
Re: Moodle 2.3.3 - Activities Block Not Visible by Default
Group DevelopersGroup Particularly helpful MoodlersGroup 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

 
Average of ratings: -
Picture of Gary Harris
Re: Moodle 2.3.3 - Activities Block Not Visible by Default
 

Thanks Mike! I really appreaciate it!

Gary

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: Moodle 2.3.3 - Activities Block Not Visible by Default
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

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)
Picture of Mike Churchward
Re: Moodle 2.3.3 - Activities Block Not Visible by Default
Group DevelopersGroup Particularly helpful MoodlersGroup 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';
//

 
Average of ratings: -