Allow users to specify the name of the certificate PDF
This has been requested a few times when the file contains special characters due to people using different languages.
+1 to this enhancement. We're using Cyrillic script in some of our courses which really messes up the certificate file name.
+1 we have courses that use the same certificate template so you cannot tell 1 certificate issued to another 1 issued under the "My Certificates" area, Student Name/Course Name combo would be great.
Hello @mdjnelson ,
I have patched the file /customcert/classes/template.php to add the name of the user, really simple. Maybe we can also add the name of the course?
302c302
< $filename = clean_filename($filename . '.pdf');
---
> $filename = clean_filename($filename . '_' . fullname($USER) . '.pdf');
Regards, Ricardo
The above fix can get added as part of https://github.com/mdjnelson/moodle-mod_customcert/issues/455 which I reopened.