Hi Guys,
I'm using Moodle 2.8.1
I was able to add a 2nd page in my certificate (pdf).
Now, I want to display all the section that i have in my course.
I saw this code done by Jean-Michel Védrine. I tried reaching him but he did not reply.
This php code shows the current section in the certificate.
$usesections = course_format_uses_sections($course->format);
if ($usesections) {
$currentsection = $DB->get_record('course_sections', array('id'=>$cm->section));
if ($currentsection) {
$printsection = get_section_name($course, $currentsection);
certificate_print_text($pdf, $x, $y+72, 'C', 'Helvetica', '', 20, $printsection);
}
}
Now, I want to tweak this (but I don't know how ), I want to show all the sections that I have in my course.
I know it's possible.
I hope someone can help
Thanks in advance.
Kind Regards,
Erwin