Moodle 2.3.3 - Activities Block Not Visible by Default

Moodle 2.3.3 - Activities Block Not Visible by Default

ved Gary Harris -
Antal besvarelser: 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

Gennemsnitsbedømmelse: -
I svar til Gary Harris

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

ved Gary Harris -

Anybody have a clue? smiler

I svar til Gary Harris

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

ved Gary Harris -

Anybody?

I svar til Gary Harris

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

ved Mike Churchward -
Billede af Core developers Billede af Plugin developers Billede af 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

I svar til Mike Churchward

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

ved Tim Hunt -
Billede af Core developers Billede af Documentation writers Billede af Particularly helpful Moodlers Billede af Peer reviewers Billede af 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.

Gennemsnitsbedømmelse:Useful (1)
I svar til Tim Hunt

Re: Moodle 2.3.3 - Activities Block Not Visible by Default

ved Mike Churchward -
Billede af Core developers Billede af Plugin developers Billede af 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';
//