Courses and course formats

 
 
Gareth J Barnard
Plugin settings and custom capabilities in Collapsed Topics
Group DevelopersGroup Particularly helpful Moodlers

Hi all,

Thanks to information supplied by Marina Glancy and code by Mary Evans, I have updated Collapsed Topics to:

  • Implement its default settings in Moodle itself and not in code so that you can adjust them as a site administrator through the user interface.
  • Have custom capabilities so that you can decide who can do what using the standard roles user interface.

The code is only partly tested and as a consequence is in the current development branch - https://github.com/gjb2048/moodle-format_topcoll/tree/MOODLE_24_POWER_TOGGLE - because that has the most up to date code and being the only developer made sence not to bother with future conflicts in my branches.

If you have a development Moodle 2.4.1+ (Build: 20130118) or above and would test it and provide feedback, then that would be appreciated.

Screen shots to follow.

Cheers,

Gareth

 
Average of ratings: -
Gareth J Barnard
Re: Plugin settings and custom capabilities in Collapsed Topics
Group DevelopersGroup Particularly helpful Moodlers

Settings screen shot


 
Average of ratings: -
Gareth J Barnard
Re: Plugin settings and custom capabilities in Collapsed Topics
Group DevelopersGroup Particularly helpful Moodlers

Capabilities screen shot


 
Average of ratings: -
Picture of Marina Glancy
Re: Plugin settings and custom capabilities in Collapsed Topics
Group DevelopersGroup Moodle HQGroup Particularly helpful Moodlers

Hi Gareth,

a little moodle advice:
replace lines 15-16 in your settings.php with:

    $choices = array(
        COURSE_DISPLAY_SINGLEPAGE => new lang_string('coursedisplay_single'),
        COURSE_DISPLAY_MULTIPAGE => new lang_string('coursedisplay_multi')
    );
    $settings->add(new admin_setting_configselect($name, $title, $description, $default, $choices));

 
Average of ratings: -
Gareth J Barnard
Re: Plugin settings and custom capabilities in Collapsed Topics
Group DevelopersGroup Particularly helpful Moodlers

Dear Marina,

Thank you smile - I was considering selections and had not figured out how to do it yet.

Cheers,

Gareth

 
Average of ratings: -