Upload block settings

Maintained by Eoin 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.
Price option: Free

Supports Moodle 2.9-5.0 See all versions
Latest release: 1 year ago
Installations: 29
Downloads (last 90 days): 15

Frankenstyle name: tool_uploadblocksettings
Administration tools

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

The problem seems to be the weight of 0. Try changing this to 1 instead.
Yes, I can!
The first error with no spaces around the commas are:
Line 1 [{$a->oplabel}]: Too few columns, expecting 5. Skipped.
Line 2 [Add]: Fields cannot be blank: block ( carlresources), course ($a->coursename), region ($a->region), weight ($a->weight). Skipped.
Line 3 [Add]: Fields cannot be blank: block ( carlresources), course ($a->coursename), region ($a->region), weight ($a->weight). Skipped.
When I add a space after the commas, I get this error:
Line 1 [{$a->oplabel}]: Too few columns, expecting 5. Skipped.
Line 2 [Add]: Course " AFST100-00-f20" not found. Skipped.
Line 3 [Add]: Course " AFST400-00-f20" not found. Skipped.
Line 4 [Add]: Course " AMST115-00-f20" not found. Skipped.
Line 5 [Add]: Course " AMST225-00-f20" not found. Skipped.
I don't see a way to attached a file here, but I did attempt to find hidden characters in a plain text editor. Here is a sample of what I'm attempting to use. The block is one that I've made for our own instance.
add,AFST100-00-f20,carlresources,side-post,0
add,AFST400-00-f20,carlresources,side-post,0
add,AMST115-00-f20,carlresources,side-post,0
add,AMST225-00-f20,carlresources,side-post,0
add,AMST256-00-f20,carlresources,side-post,0
add,AMST398-00-f20,carlresources,side-post,0
add,ARBC101-01-f20,carlresources,side-post,0
Can you post the CSV file you are trying to import so that I can take a look? Also post the exact error message you see. Are you editing the CSV file directly, or saving an Excel file in CSV format? Excel sometimes adds extra columns you don't expect. The plugin can be used with any installed block, not just core blocks. You also need to make sure the block name matches an existing block.
Unfortunately, I continue to have trouble with this plugin. If I leave no spaces before or after the commas, then I get the error that the fields can't be blank. If I leave a space after each comma, it tells me it can't find the course sites because it's not stripping the space from the front of the course shortname. I've gone to your git repo and installed from there, but I continue to get the same errors. I'm using Moodle 3.8.3. Are there any other suggestions?
I am attempting to use this plugin, but I'm not able to get any courses updated to show a custom block. For every line I get the error that fields can't be blank, but they aren't. I'm not sure what I'm doing wrong. Can this only be used with Moodle standard core blocks?
Awesome! Thanks. We were looking for a way to standardize courses over Covid-19 distance learning. This allowed me to make a single upload to standardize everything at one.

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.

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

Approval issue created: CONTRIB-7340