Email Template Modification Not Working and Location for default email template
Describe I have modified email template for first user registration, 2nd email confirmation, password reset under "main\template\default\mail" but seems it is not working. Also, where do you find template for - email activation mail, announcement mail, new course subscription mail etc.
To Reproduce Steps to reproduce the behavior:
- Go to 'main\template\default\mail"
- open 'new_user_first_email_confirmation.tpl" and modified this file as:
{{ _admin.name }}'-'{{ _admin.surname }}, I have replaced "," with "-" but not working. How to replace site_name with oarganization_name?
{{ 'YouAreReg'|get_lang }} {{ _s.site_name }} {{ 'WithTheFollowingSettings'|get_lang }}
- open 'subject_registration_platform.tpl" and modified this file as: {{ '[' ~ _s.site_name ~ '] ' ~ 'YourReg'|get_lang ~ ' }} ' CompanyName' But it is still displayed as Site_name.
Expected behavior It should be accept changes done in *.tpl files
Screenshots NA
Desktop (please complete the following information):
- OS: Windows 10
- Browser : chrome, firefox
**Server
- OS: Linux Ubuntu 18.04
- Version of Chamilo: 1.11.10
- Version of PHP: 7.2
Hi @rajeekum Once you have done your modification in a template you need to clear the cache for the new tpl files to be used. Todo so go to your plateform on https://YOURCHAMILO/main/admin/archive_cleanup.php Click on "Proceed with cleanup".
Best regards
Thank you NicoDucou. I will try and update.
@NicoDucou After clearing cache also, it didn't work. any other suggestions ?
@rajeekum are you using the default template? Did you define a different template in app/config/configuration.php (setting 'default_template')?
Does any error message appear when you launch the "clear cache" process?
Related to https://github.com/chamilo/chamilo-lms/issues/3380#issuecomment-661641866