March 2, 2022

Set Default Certificates Display Behavior on Open edX

Activities, Android Developer, Ansible, Apache2, Atlassian, Ayo Belajar Linux, Bestpath Network, BLC Telkom Klaten, BSD, Caddy Server, Case Study, Cisco, Cisco Indonesia, Cloud Computing, Cockpit, Custom Weapons, Docker, E-Learning, Engenius, Error, FreeBSD, FreeBSD Indonesia, Komunitas Pengguna Linux Indonesia, KPLI Bulukumba, KPLI Klaten, Lets Encrypt, Linux, MacOS, Microsoft Azure, Microsoft SQL Server, MikroTik, MikroTik Indonesia, MySQL, Nginx, Open edX, OpenSID, Others, PHP, phpMyAdmin, PostgreSQL, Proxmox, Python, Redash, Sendy, SSH, Stories, Subnetting, TP-Link, Ubiquiti, Unix, Virtualization, Windows, X-Mosque, Faizar Septiawan, Icar, siBunglonGanteng, Orang Ganteng, siBunglonLabs, Programmer, SysAdmin, Site Reliability Engineer, Developer, Palugada, Makassar, Ganteng, Gila, Cyclist, Panglima, Setan, Panglima Setan, sibunglon, Ganteng

By default, Certificates Display Behavior was set to end. But this configuration can be override, for example want to set it early_no_info as default. Follow the steps below:

  1. Go to Open edX server console.

  2. Open and edit file /edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/course_module.py.

  3. Find the following codes snippet:

    ...
        certificates_display_behavior = String(
            display_name=_("Certificates Display Behavior"),
            help=_(
                "Enter end, early_with_info, or early_no_info. After certificate generation, students who passed see a "
                "link to their certificates on the dashboard and students who did not pass see information about the "
                "grading configuration. The default is end, which displays this certificate information to all students "
                "after the course end date. To display this certificate information to all students as soon as "
                "certificates are generated, enter early_with_info. To display only the links to passing students as "
                "soon as certificates are generated, enter early_no_info."
            ),
            scope=Scope.settings,
            default="end"
        )
    ...
    
  4. Then update the code, change part default="end" from end to early_no_info. See the following codes snippet:

    ...
        certificates_display_behavior = String(
            display_name=_("Certificates Display Behavior"),
            help=_(
                "Enter end, early_with_info, or early_no_info. After certificate generation, students who passed see a "
                "link to their certificates on the dashboard and students who did not pass see information about the "
                "grading configuration. The default is end, which displays this certificate information to all students "
                "after the course end date. To display this certificate information to all students as soon as "
                "certificates are generated, enter early_with_info. To display only the links to passing students as "
                "soon as certificates are generated, enter early_no_info."
            ),
            scope=Scope.settings,
            default="early_no_info"
        )
    ...
    
  5. Restart LMS and CMS services.