Block on New Courses

Block on New Courses

by Luis Herrera Noguera -
အကြောင်းပြန်မှု အရေအတွက်: 12

Hi everyone, I have a doubt, I need to create a new course that appears with the bock of Clock, Accesability, Administration and Mail in a left colum and Calendar in a right colum.


I am using Moodle 2.5.


Thanks a lot

ပျှမ်းမျှအဆင့်သတ်မှတ်ချက်များ: -
Luis Herrera Noguera ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Gareth J Barnard -
Core developers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

I'm sure there is an option for default blocks in new courses somewhere, please look at the Moodle documentation.

Luis Herrera Noguera ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

To set new blocks as default is actually found in your site's config.php file.

https://docs.moodle.org/28/en/Block_layout


Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Luis Herrera Noguera -

Thanks Emma, I already have done that, however, I can not look any change. I have modified the config file and later when I load a new course appears the following label: "Could not find mods! Moodle"; besides, I can not add any activity from the edition mode.

Luis Herrera Noguera ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

I would guess that you have a mistake in your config file.  Make sure you follow these instructions - one stray comma or semi colon will create chaos!!

https://docs.moodle.org/27/en/Block_layout

Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Luis Herrera Noguera -

I have done all that the article says ၀မ်းနည်း

Luis Herrera Noguera ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

Can you copy and paste the line from config.php that you added and the exact error code that you are getting...



Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Luis Herrera Noguera -

Sure, I have tried this without sucess:


//$CFG->defaultblocks_override = 'accessibility,jmail:calendar_month';

//$CFG->defaultblocks = 'accessibility,jmail,calendar_month';

//$CFG->defaultblocks_topics =  'accessibility,jmail:calendar_month';

Luis Herrera Noguera ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Gareth J Barnard -
Core developers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

You have to remove the two forward slashes - '//' - as they are the comment symbols in PHP.

Gareth J Barnard ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Luis Herrera Noguera -

Thanks Gareth, it's just a representative example, I know are comments...

Luis Herrera Noguera ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Emma Richardson -
Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ

And the full error message when you try to create a new course?  With debugging turned on?

Emma Richardson ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Block on New Courses

by Luis Herrera Noguera -

Indeed, I have done a test adding a new course with the blocks of accessibility,jmail, calendar_month and I could create a new course with those defaults blocks and any message error appers. However, I dont have enabled the label "add activity" when I activate the Edition mode ON.