Admin tools: Upload block settings

Maintained by Picture of Eoin CampbellEoin Campbell
This plugin allows administrators to upload a CSV file containing block settings for courses. You can add or delete blocks, so the tool enables you to apply a default set of blocks for some or all courses on a site. You can also reset the set of course blocks to the default for that course format.
16 sites
6 fans
Moodle 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8

The Upload Block settings plugin allows administrators to add multiple blocks to a set of courses in a single batch operation. This is particularly useful for existing sites with a large number of courses, where you can delete obsolete blocks and add new default blocks to every course.

You can also reset course blocks to the defined default set for the course type, see Block Layout.

Use the command Site administration > Courses > Upload block settings to upload a CSV file containing lines of the form:

operation, course shortname, block name, region, weight

Lines beginning with a '#' or ';' character are comments, and skipped.
Each line of the file contains one record.
Each record is a series of data in a fixed order separated by commas.
The required fields are operation, course shortname, block, region, weight.
The allowed operations are add, del(ete), and res(et).
The allowed regions are side-pre and side-post.
The allowed weights are -10 to 10 (0 is neutral).


Screenshot #0


Picture of Eoin Campbell
Eoin Campbell (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Tue, Jun 19, 2018, 9:50 PM
    Approval issue created: CONTRIB-7340
  • Picture of David Mudrák
    Wed, Jul 11, 2018, 4:37 PM

    Thanks Eoin for sharing the plugin with the community. Please refer to the to feedback provided in the tracker approval issue.

  • Picture of David Mudrák
    Wed, Jul 18, 2018, 1:38 PM

    Thanks again Eoin. Please note the master branch on your Github repository seems to contain some important recent fixes. Please consider releasing a new version of your plugin ASAP.

Please login to post comments