chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Email Template Modification Not Working and Location for default email template

Open rajeekum opened this issue 6 years ago • 5 comments

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:

  1. Go to 'main\template\default\mail"
  2. 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 }}

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

rajeekum avatar Apr 23 '20 10:04 rajeekum

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

NicoDucou avatar May 26 '20 10:05 NicoDucou

Thank you NicoDucou. I will try and update.

rajeekum avatar May 27 '20 08:05 rajeekum

@NicoDucou After clearing cache also, it didn't work. any other suggestions ?

rajeekum avatar May 29 '20 23:05 rajeekum

@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?

ywarnier avatar Jun 18 '20 03:06 ywarnier

Related to https://github.com/chamilo/chamilo-lms/issues/3380#issuecomment-661641866

AngelFQC avatar Jul 21 '20 05:07 AngelFQC