michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
32 stars 43 forks source link

Course participant count includes non students #212

Closed emmarichardson closed 1 year ago

emmarichardson commented 2 years ago

Is there a way to limit the course participant count to students - currently it includes all roles...

michael-milette commented 2 years ago

Not yet. Something to consider for the future though.

garetharnott commented 2 years ago

I noticed this too - it would be nice to have filters for {coursestudentcount} {coursenon-editingcount} {coursefacilitatorcount} I large courses this can be a 'nice', but not a personal 'high-priority' feature.

regards Gareth

michael-milette commented 1 year ago

Hi @emmarichardson

Great news! The new {coursecount students} tag that you requested, which shows just the number of students enrolled in the course, has been added to FilterCodes.

At the moment, this new feature is only available here on GitHub. Could you please try it out and let me know if it works for you? If it does, this feature will be included in the upcoming release on moodle.org around the launch of Moodle 4.1 in about a month.

Best regards,

Michael Milette

michael-milette commented 1 year ago

Hi @garetharnott ,

Thanks for the suggestions. If you would like to see a {coursecount non-editing} and {coursecount facilitator}, please create new separate tickets for each of them and be sure to include real-life use cases.

Best regards,

Michael

garetharnott commented 1 year ago

Thanks for this @michael-milette - I think the student one is the most important/useful, so I'm not going to add requests for the others now - my main motivation though is that I am hoping you get to the {ifingrouping} tag :)

emmarichardson commented 1 year ago

That's wonderful - thank you so much!

michael-milette commented 1 year ago

HI @emmarichardson ,

This new tag is now also available on Moodle.org. Thanks again for your suggestion!

Best regards,

Michael