Adding more elements to a cert

Adding more elements to a cert

by Thor Pfosten -
Number of replies: 1

Hi there,



for generatng individual certs after having passed a quiz we want to use this plugin (mod_customcert).

We have a Moodle 3.5...


We'd like to add some additional data to the certs which needs to be drawn out of the database.

So I simply put an additional element to the folder "customcert/element" which I  called "moredata".

"moredata" is a simple copy of the element "userfield" renamed to "moredata". Each occurance of the term

"userfield" in the textfiles of that plugin I exchanged to "moredata".


Now it is possible to add also the new element "moredata" to a cert but is not displayed on the

cert-pdf. Can you tell me how to achieve this ? 


can you get me started here in order to add more elements to a cert ?


I also get an error msg (please see attachment). 

customcertbug

Best,


Average of ratings: -
In reply to Thor Pfosten

Re: Adding more elements to a cert

by Mark Nelson -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Have you looked at the file moodlelib.php, specifically the line 2534?