Meta-course group synchronization

Maintained by Paul Holden
Automatically synchronize groups from child courses into meta-courses.
Price option: Free

Supports Moodle 4.1-5.1 See all versions
Latest release: 9 months ago
Installations: 450
Downloads (last 90 days): 99

Frankenstyle name: local_metagroups
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

I've installed this plugin on a Moodle 2.6.6 site and can't seem to get groups to transfer. I've created a child course with 4 students manually enroled into 2 groups. I've created another course and enroll students from the child course using the meta-link method, the students are enroled but they are not put into groups. Is there something I'[ve missed?
I've installed this plugin, but can't seem to run the sync.php file. When I try to run it from the browser it says I can't. When I try to run it from the Windows Command Line on the server (we use Windows Servers) it just opens the file in notepad and doesn't execute it. Can anyone help me with what I am doing wrong?
Hi Samuel,
Although the plugin was designed for Moodle 2.6, it should continue to work fine in later versions - please let me know if not!
Hello, does anyone knows if it works with moodle 2.7? There is any modification that I can do?
Hi guys, I followed the installation instruction as specified in the read me file. But, when i went to the part where i had to run the sync.php script, it is giving me database connection failed error.
I figured that this error is caused by this line in the script.
require_once (__DIR__ . '/../../../config.php');
moodle, is working just fine. So, I am not sure why it is the script is giving me this error.
any idea why, this is happening.?
Hi Salvador,
That is the current behaviour, yes. If you take a look at the group_created event observer, you'll see that it currently matches on the 'idnumber' property of the group:
https://github.com/paulholden/moodle-local_metagroups/blob/master/classes/observers.php#L46-53
Perhaps a configuration option to match on group name could be added..?
Talked too soon. I found something that could be an expected behavior, but it represents a major problem for the organization I work for.
When having the same name for groups in two or more child courses, the plugin creates the same number of duplicate groups in the meta-course instead of using just one.
Example:
- course A has group "org_es"
- course B has group "org_es"
- course C is meta-linked to courses A and B
- two groups "org_es" are created in course C (one with course A students, the other with course B students) instead of just one group "org_es" (with both course A and course B students)
Also, it doesn't matter if group "org_es" was already created in course C. Three groups remain: one with course A students, another one with course B students and the one already created in course C.
Again, maybe this is the expected behavior.
Tested in Moodle 2.6.2+ (Build: 20140403) and working perfectly. I was propagating all the groups "manually" once a day with a script but something like this is what I was really looking for. Thank you!
Beautiful! I was almost about to code it myself. Thank you smile
This looks really useful unfortunately i didn't test it completely. Installation and code seemed fine smile