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.
| Comment | File | Size | Author |
|---|---|---|---|
| certificate_settings.JPG | 38.23 KB | tamasco | |
| mapping.JPG | 40.03 KB | tamasco |
Comments
Comment #1
BD3 commentedI have the same issue, any help would be appreciated as well.
Comment #2
djdevinThe 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.
Comment #3
tamasco commentedMany 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.
Comment #4
djdevinWhat PDF generator are you using? Can you preview the certificate in PDF from admin/settings/certificate ?
Comment #5
djdevin2.x now has 1:1 mappings (using the "manual" map type)
Comment #6
mradamjohn commentedsame 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!
Comment #7
djdevinHow 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 ;)
Comment #8
mradamjohn commentedwe 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!
Comment #9
djdevinI 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.
Comment #10
djdevinSee #1768600: Blank certificate with TCPDF for the blank certificate. TCPDF issue.