Here’s my update now that I finally got it to work:
The correct tutor plugin to enable certificate customizations is:
name: enable_custom_certs
version: 0.1.0
patches:
openedx-lms-common-settings: |
FEATURES["CUSTOM_CERTIFICATE_TEMPLATES_ENABLED"] = True
After reading this thread I learned a useful trick to confirm whether a plugin is setting a value correctly or not:
$ tutor local run lms ./manage.py lms shell
>>> from django.conf import settings
>>> settings.FEATURES["CUSTOM_CERTIFICATE_TEMPLATES_ENABLED"]
True
So I’m pretty sure that was the main issue why it wasn’t working before. But for completeness, I also did the following:
git clone https://github.com/myusername/edx-platform.git
cd edx-platform
git checkout my_custom_palm_branch
cd ..
cp -r edx-platform/lms/templates/certificates/ indigo_mine_palm/tutorindigo/templates/indigo_mine_palm/lms/templates/
nano indigo_mine_palm/tutorindigo/templates/indigo_mine_palm/lms/templates/certificates/_about-accomplishments.html
Insert a <h1>BIG TEST 1</h1>
nano indigo_mine_palm/tutorindigo/templates/indigo_mine_palm/lms/templates/certificates/accomplishment-base.html
Insert a <h1>BIG TEST 2</h1>
tutor plugins enable indigo
(even though it was already enabled
tutor config save
tutor local quickstart
I confirmed they changes *didn't* apply if I only did a `tutor local restart`
Both of those changes showed up.
Another thing I did for good measure was I edited lms/djangoapps/certificates/views/webview.py
in my_custom_palm_branch of edx-platform like this:
diff --git a/lms/djangoapps/certificates/views/webview.py b/lms/djangoapps/certificates/views/webview.py
index b859cfe92c..fad5c0bf91 100644
--- a/lms/djangoapps/certificates/views/webview.py
+++ b/lms/djangoapps/certificates/views/webview.py
@@ -144,7 +144,7 @@ def _update_certificate_context(context, course, course_overview, user_certifica
# Translators: This text fragment appears after the student's name (displayed in a large font) on the certificate
# screen. The text describes the accomplishment represented by the certificate information displayed to the user
- context['accomplishment_copy_description_full'] = _("successfully completed, received a passing grade, and was "
+ context['accomplishment_copy_description_full'] = _("successfully completed this class, and was "
"awarded this {platform_name} {certificate_type} "
"Certificate of Completion in ").format(
And then I build openedx with:
tutor images build openedx --build-arg EDX_PLATFORM_REPOSITORY=https://github.com/myusername/edx-platform.git --build-arg EDX_PLATFORM_VERSION=my_custom_palm_branch
So @JS777 if you’re still around, that’s how I was able to do what you were shooting for in your thread.