Support an individual fullname #720 - #736
stellargela wants to merge 1 commit into
Conversation
|
Can you please squash these commits into one? Thanks. |
|
Also, please address this issues found in GitHub Actions. Cheers. :) |
abb7d4d to
83864f0
Compare
|
Hi, |
|
This looks good. However, I would not have a global setting for these but I would put it as an option in the element. The core plugin should not know or care about the settings of elements. :) |
41d9c5d to
a1494a8
Compare
|
Hi @mdjnelson, So would it be ok for you if we implement these admin settings to the elements in the same way instead? Our approach with an admin setting in the core plugin was to define a global naming scheme. In our case the defined scheme should be used automatically by any element plugin and editing users shouldn't be able to define the scheme on their own. Thanks in advance, |
|
Thanks for explaining the use case. I understand why you want a site-wide certificate name format, and I’m fine with that being configured by an administrator rather than by each editing teacher. My concern is where the logic lives. This behaviour is specific to the mod_customcert already supports element plugins loading their own settings: after the main customcert settings, it creates the customcertelements category and calls each customcert element plugin’s load_settings() method. So an admin-level, globally enforced setting can still be implemented, but it should be owned by the element plugin rather than by mod_customcert itself. This keeps the separation clean: core provides the certificate/element framework, while each element owns its own rendering policy. In this PR, the new Could you move this into the relevant element plugin(s) instead? For example, the element plugin could expose the admin setting, contain the formatting helper, and use it consistently in both PDF rendering and HTML preview. The setting can still be global/admin-controlled, so editing users do not need to choose the format per certificate element. Thanks for your patience and hard work! :) |
add #720