Non-core contributed modules

Two new fields to customize the PDF certificate: title and coursename

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8
  • Fix Version/s: None
  • Component/s: Module: Certificate
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE

Description

Hi Chardelle,

Here is some work we did for one of our clients which you may be interested in.

I have added two new fields to the activity settings:

1- The "title" setting controls what is displayed at the top of the certificate (by default "CERTIFICATE of ACHIEVEMENT").
2- The "coursename" setting is what gets displayed instead of the course name on the certificate.

An example use case of this is when you have multiple activities on a course page and want to display a certificate for all three activities:

e.g. In a course called "Powerpoint Courses" which includes activities "Powerpoint 101" and "Powerpoint 102", a teacher might want to issue a certificate for the whole course. On that certificate, the teacher wants to see "Powerpoint", not "Powerpoint Courses".

Activity

Hide
Chardelle Busch added a comment -

Thanks Francois,

I really am reluctant to add more and more db fields to the cert. As of now, it's pretty easy to change any lang strings to what you want printed on the cert, or even to create a new type folder and customize what you want printed and where.

For custom text, I'd like to have something like text fields in mod_form for data1, data2, etc. (with + for adding more--similar to the locking in mod_form now) and then for each have the ability to set the X Y positions.

Show
Chardelle Busch added a comment - Thanks Francois, I really am reluctant to add more and more db fields to the cert. As of now, it's pretty easy to change any lang strings to what you want printed on the cert, or even to create a new type folder and customize what you want printed and where. For custom text, I'd like to have something like text fields in mod_form for data1, data2, etc. (with + for adding more--similar to the locking in mod_form now) and then for each have the ability to set the X Y positions.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: