More info in assignment submission notifications

More info in assignment submission notifications

Anze Pratnemer -
回帖数:3

Greetings,


is there a setting that would add additional info (students email, idnumber, ..)  to email notifications, received by teachers, when student submits assignment or updates the assignment?

回复Anze Pratnemer

Re: More info in assignment submission notifications

Ravi Murugesan -
Particularly helpful Moodlers的头像 Testers的头像

Hi Anze - You might be able to add those details in the assignment notification emails via Language Customisation. If you've not use this feature before, see this post.

The strings to change the text in the body of the assignment notification email are gradersubmissionupdatedhtml and gradersubmissionupdatedtext (the strings are almost identical - one is for HTML emails and the other for plain text emails).

Try adding {$a->email} in the customised string.

回复Ravi Murugesan

Re: More info in assignment submission notifications

Anze Pratnemer -

Hi Ravi.

That is a nice solution, I tested it and it works.

Thank you very much for browsing topics this old (what was it, 15th page?) and helping us.


Regards, Anze

回复Ravi Murugesan

Re: More info in assignment submission notifications

Paul Vincent -
Hi Ravi,

I just came across your reply to Anze's question, and wondered if you might be able to help with my similar query. I'me looking to do something similar, but need to bring in the User's id as well as teh Assignment id, so I can construct a URL that takes a teacher directly to the submission that requires grading, e.g. a URL such as: https://example.com/mod/assign/view.php?id=608&rownum=0&action=grader&userid=9

These variables don't look to be available to the language string by default; do you know where I may be able to include a reference to these in the code somewhere?

I also posted here: https://moodle.org/mod/forum/discuss.php?d=424784 but having no luck so far with a reply over there.


Many thanks,
Paul