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

Feature request: Filtercode to show a specific grade item #216

Open davefoord opened 2 years ago

davefoord commented 2 years ago

Would it be possible to add a filter code that allows for a specific grade item to be shown? I have courses with complicated grade calculations - but ultimately I want to show a single key grade item to the user.

e.g. Something like:

{gradeitem XXXX} where XXXX = the ID of the grade item.

garetharnott commented 2 years ago

@davefoord I really like this - hopefully Michael can do this. It would be nice to have this as I find the gradebook to be extremely overcomplicated. As a student I think I would like to have some sort of indication on the homepage of how my grades are looking.

regards Gareth

michael-milette commented 1 year ago

Hi @davefoord ,

I am always hesitant to create any FilterCodes tags that would enable you to retrieve information from a different context. For example, displaying one course's information in a different course, dashboard or home/front page.

The version of FilterCodes here on GitHub (not on Moodle.org yet) includes a tag called {coursegrade} which displays the learner's grade but only within that course.

It sounds to me like you are looking for something like a live report card or grade transcript that you can display on the home page or dashboard. I think a custom block or activity module might be a better choice. Another place would be to customize a theme. A theme has access to override the way course cards are displayed on the dashboard and/or front page.

I happen to noticed that there is a block called My Grades available for download. It is only listed as being compatible with Moodle 2.3 to 2.8 on Moodle.org however there is a much more recent version available on GitHub which is very likely compatible with more recent releases of Moodle.

Just considering what would make more sense, both from a feasibility and a security point of view.

Best regards,

Michael Milette

davefoord commented 1 year ago

Hi @michael-milette, thanks for considering this.

If there is a security reason not to do something, then don't do it. In my situation - I was only going to show the grade item within the course that grade item was in - so less of a security issue - but I assume if you added that feature - it could be used to read grade items across courses - which I understand could have an issue with security (or at least an issue in terms of people seeing things that they shouldn't).

The My Grades block shows the overall course grade, not specific grade items - so doesn't help me here, but worth me knowing about for other applications.

Thanks

Dave Foord

michael-milette commented 1 year ago

Hi @davefoord ,

I will give this more thought.

Michael