插件管理工具稳定版

Upload block settings

tool_uploadblocksettingsEoin Campbell

  • Moodle 4.1–5.0
  • 更新 2025-05-16

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.
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).

返回插件目录