Maximum number of students in a particular course

Maximum number of students in a particular course

by Natalia Kondyukova -
Number of replies: 1

Hello!

I'll try to explain my new task.

A teacher can enrol a large cohort to a particular course via manual enrollment. But the number of students who can actually take part in the course (be enrolled) should be limited, e.g. 50. All users from the cohort will get an e-mail notification "number of students is limited, accept/decline your participation". Then the first 50 of "accepted" users will be enrolled.


The questions are:

- Where should I store the "max_number_of_students" field in database?

- Can I connect this field with manual enrollment plugin? Or should I create a new enrollment plugin?


Any help.


Average of ratings: -
In reply to Natalia Kondyukova

Re: Maximum number of students in a particular course

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Natalia,

A simple non-coding way of achieving what you describe would be to allow students to self-enrol and have 'Max enrol users' set to 50. Please see the documentation Self enrolment for more details.