Joomla4 : why noscript tag in message ! how to get around ?

52 views
Skip to first unread message

roland_d_alsace

unread,
Aug 3, 2023, 11:00:42 AM8/3/23
to Joomla! General Development
Hi.
In Joomla4 /layouts/Joomla/system/message.php in line 66 there is a noscript tag that surrounds all messages.

As a result, we can no longer put html (formatting, form, etc.) in messages (enqueueMessage method).

It's penalizing, isn't it?

How to properly get around this limitation in a component and continue to put html tag in messages ?


Regards.

kishore kumar

unread,
Aug 3, 2023, 2:48:57 PM8/3/23
to Joomla! General Development
Hi,

You can create a template override of this file .
Copy the file /layouts/Joomla/system/message.php  to your template templates/your_templates/html/layouts/joomla/system/message.php

and do your changes in this file.

Thanks
Kishore

roland_d_alsace

unread,
Aug 3, 2023, 3:20:13 PM8/3/23
to Joomla! General Development
Thanks for your answer, but that's not the formula.
I need to be able to distribute it with my components
Reply all
Reply to author
Forward
0 new messages