HTML in language override

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
econveyors
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Oct 02, 2013 5:15 pm
Location: Cincinnati, Ohio
Contact:

HTML in language override

Post by econveyors » Thu Mar 24, 2022 9:37 pm

I'd like to add some HTML to the emails that get sent during the user sign-up process. I am familiar with language overrides and I am currently using them to customize the emails. But, I'd like to take it a step further and format them with HTML.

I tested with one of the emails, but it didn't interpret the HTML and just sent it as plain text with all of the tags, etc.

Is there a way add HTML into overrides? Or perhaps another way to accomplish what I'm trying to do?

User avatar
mjparadac
Joomla! Hero
Joomla! Hero
Posts: 2488
Joined: Mon Oct 29, 2012 3:58 pm

Re: HTML in language override

Post by mjparadac » Thu Mar 24, 2022 9:54 pm

Joomla Community Ambassador for A2 Hosting | A2 Hosting - Our speed, your success | https://www.a2hosting.com/joomla-hosting

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9747
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: HTML in language override

Post by AMurray » Thu Mar 24, 2022 9:56 pm

Adding to @mjparadac reply,

It's not as simple as adding a few HTML tags to the language strings. You need to use an email template in the Joomla CMS.

In J4 you'd simply create custom email templates:
https://magazine.joomla.org/all-issues/ ... templating

In J3 I think there's a handful of email template extensions:
https://extensions.joomla.org/extension ... tml-email/
https://extensions.joomla.org/extension ... eautifier/
https://extensions.joomla.org/extension ... g-starter/ (not sure if ACY Starter has the capability to create email templates for the system emails such as registration, activation etc., or if that's in the Pro edition).

The other way is you would have to write a plugin, to override the email template.

This also briefly discusses the issue:
https://stackoverflow.com/questions/453 ... l-template

But from your question it sounds like your aim is not to make *every* email an HTML email but one specific change in the Registration email, or do you intended to apply such styling (HTML templates) to all the Joomla system emails - which would make the above investments (paid extensions) more worthwhile.
Last edited by AMurray on Thu Mar 24, 2022 10:01 pm, edited 1 time in total.
Regards - A Murray
General Support Moderator

econveyors
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Oct 02, 2013 5:15 pm
Location: Cincinnati, Ohio
Contact:

Re: HTML in language override

Post by econveyors » Thu Mar 24, 2022 10:00 pm

Thank you both for the response. I understand there are email template options available in Joomla 4. But, unfortunately, we're not ready to upgrade to 4 just yet. I will check out those links, A Murray. Thanks again.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44097
Joined: Sat Apr 05, 2008 9:58 pm

Re: HTML in language override

Post by Webdongle » Fri Mar 25, 2022 12:50 am

Just tested created override for 'Action Log - Joomla' in the Action Log - Joomla Plugin
overide 01.JPG
overide 02.JPG
For emails you may need to escape double quotes https://docs.joomla.org/J3.x:Making_a_L ... _ini_files
You do not have the required permissions to view the files attached to this post.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: HTML in language override

Post by brian » Fri Mar 25, 2022 7:13 am

@webdongle if you test it for emails which is the users actual question you will see that it is much more than just putting html in the text.
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/


Locked

Return to “Language - Joomla! 3.x”