Hide self-enrol options of other cohorts

Hide self-enrol options of other cohorts

Nosūtīja Aaron Johnson
Atbilžu skaits: 4

I use the self-enrol method in most all of my courses, and limit it to only members of a particular cohort. Most courses then have multiple self-enrol options for different cohorts. When someone goes to enrol in a new course, as it should only the method that matches their cohort displays an "Enrol me" button. The others display the message "Only members of cohort '...' can self-enrol."

Wouldn't it be cleaner to just not display those options? And if none of the options match the student's cohorts, then default "You cannot enrol yourself in this course." message?

How might I go about removing the unavailable options for students?

Thanks,
Aaron

Vidējais novērtējums: -
Atbildot uz Aaron Johnson

Re: Hide self-enrol options of other cohorts

Nosūtīja Emma Richardson
Documentation writers attēls Particularly helpful Moodlers attēls Plugin developers attēls
YES! That would be so much cleaner - see if anyone has suggested in the tracker and if not, add it there!
Atbildot uz Emma Richardson

Re: Hide self-enrol options of other cohorts

Nosūtīja Aaron Johnson
Thanks, Emma. Done. Go vote for it: https://tracker.moodle.org/browse/MDL-71561
Atbildot uz Aaron Johnson

Re: Hide self-enrol options of other cohorts

Nosūtīja Emma Richardson
Documentation writers attēls Particularly helpful Moodlers attēls Plugin developers attēls
I voted - if they don't pick it up, I will submit to MUA as a project for next round but no guarantees it will get chosen and next round wouldn't be implemented for some time.