What I want to do is straight-forward: create two quiz nodes and set up two certificate templates that will be awarded based on which quiz is passed.

I have installed certificates module and configured a Quiz content type as a certifiable node type. I created a certificate template and also created criteria sets. But I cannot set mapping field. When I click the "mapping" tab under the Certificate configuration page, I get the screen as shown on the attached image mapping.jpg even though I have content profile with created fields.

When I go to the quiz edit page I see under "Certificate template settings" Please set up field mappings before using certificates (see second certificate_settings.jpg attached). Clicking here takes me back to the same page as shown in the previous image mapping.jpg.

This is how I set the criteria:
Type: node
criteria: profile
Check Key: field_lname (i.e. last name field in content profile)
Value: 19 (this is the NID of the quiz node. I changed the value to user profile NID too but that did
now work either).

After taking a quiz, I clicked the "certificate" tab and get a message that reads: "Sorry, there is no certificate available based on your profile data".

I do not know what I am doing wrong.

CommentFileSizeAuthor
certificate_settings.JPG38.23 KBtamasco
mapping.JPG40.03 KBtamasco

Comments

BD3’s picture

I have the same issue, any help would be appreciated as well.

djdevin’s picture

Title: Certificate template settings - mapping Field Issue. » Allow 1:1 certificate mappings
Component: User interface » Code
Assigned: Unassigned » djdevin
Status: Active » Needs work

The functionality you're looking at is for mapping a selection in a user's profile (User type, let's say) to the type of certificate they should receive on a course/quiz. I think you want a simpler solution, a 1:1 relationship of Node -> Certificate?

This sounds silly but I'm not sure Certificate is actually set up to do something as simple as that. This should definitely be a feature though...

For the criteria (just to get it working) try this:

Type: node
Criteria: content type
Value: quiz

This means "check that the current node's content type is a quiz". So, it will map 1 certificate to all quizzes - not what you want but closer to it.

Setting this to needs work.

tamasco’s picture

Many thanks for the help. I did what you said regarding the criteria set up but now I get an empty PDF file when I open the certificate. I have a template but the content of the template does not show.

Regards.

djdevin’s picture

What PDF generator are you using? Can you preview the certificate in PDF from admin/settings/certificate ?

djdevin’s picture

Status: Needs work » Fixed

2.x now has 1:1 mappings (using the "manual" map type)

mradamjohn’s picture

Version: 6.x-1.0 » 6.x-2.x-dev

same result here; header and footer with page number on PDF but the content of the certificate does not show - - an empty PDF as noted above.

also, admin/settings/certificate does not seem to exist.

thanks in advance!

djdevin’s picture

How are you accessing the Certificate? There shouldn't be any headers/footers when dealing with certificates since we bypass all that functionality which is provided by print module.

In 2.x the settings moved to admin/build/certificates ;)

mradamjohn’s picture

Status: Fixed » Needs work

we have admin/build/certificates - so that must be good ;)

accessing certificate via course module, or download from admin/build/certificates page PDF link - same results

since only header and footers appear; wondering if somehow the bypass is not happening?

thanks in advance!

djdevin’s picture

Status: Needs work » Closed (fixed)

I can't reproduce this at all, but this isn't the place for this issue, if you could kindly create a different issue with steps to reproduce for certificates not rendering that would be great.

My steps were just to create a certificate template with some dummy text, associate it with a course, and then complete the course to receive the certificate.

The dummy text appeared in the PDF as expected with no header/footer.

djdevin’s picture

See #1768600: Blank certificate with TCPDF for the blank certificate. TCPDF issue.