Showing all course's section in certificate (pdf)

Showing all course's section in certificate (pdf)

by Erwin Ancheta -
Number of replies: 0

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 replysad.


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 sad ), I want to show all the sections that I have in my course.

I know it's possible.

I hope someone can helpsad

Thanks in advance.


Kind Regards,
Erwin

Average of ratings: -