moodle-filter_filtercodes icon indicating copy to clipboard operation
moodle-filter_filtercodes copied to clipboard

Feature request: Filtercode to show a specific grade item

Open davefoord opened this issue 2 years ago • 4 comments

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.

davefoord avatar May 17 '22 09:05 davefoord

@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

garetharnott avatar Jun 02 '22 06:06 garetharnott

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

michael-milette avatar Oct 02 '22 07:10 michael-milette

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

davefoord avatar Oct 03 '22 07:10 davefoord

Hi @davefoord ,

I will give this more thought.

Michael

michael-milette avatar Oct 06 '22 09:10 michael-milette