Add an email address to an article or custom module and add space at end ensure it becomes a live email mailto link
(Only just noticed this as most of my sites use contact forms and don't advertise email addresses)
View the email in front-end page source code and/or with inspector tool and the email should be disguised with JavaScript
It isn't,
but emails are protected in a J4 site that I keep for reference
Edit: The "Content - Email Cloaking" plugin is active and set to "As linkable mailto address"
Labels |
Added:
No Code Attached Yet
|
@Scrabble96 can you check the console, if there is a javascript error?
No JS errors.
You are using template overrides as I have already shown!!
Ok. [I can't really see your images any bigger as when I click on them I just get a blank page with the URL https://private-user-images.githubusercontent.com/1296369/30... etc. Edit: Can't see mine, either. Not sure if it's a Firefox thing.]
I tracked it down. The difference was that I had this in my article default.php code:
<?php echo $this->item->introtext; ?>
<?php echo $this->item->fulltext; ?>
and the new version has this:
<?php echo $this->item->text; ?>
Somehow I'd missed that when checking file updates.
<?php echo $this->item->introtext; ?>
<?php echo $this->item->fulltext; ?>
Yes that is your override and it is why it is breaking. fulltext does not process plugins. Only introtext and text do that. That is true for joomla 4 and joomla 5
But the good news is that I made a pr yesterday that fixes that
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-02 18:26:22 |
Closed_By | ⇒ | Scrabble96 |
Great. Thanks.
Chrome inspector shows the email. But it is not displayed if you view the source in your browser.