Skip to main content
3 votes
Accepted

What should I use to escape a module parameter in Joomla 5?

The proposed methods don't work simply because they don't exist. htmlspecialchars() is fine. There is no generic utility method because it would really just be a proxy to htmlspecialchars(). For ...
Sharky's user avatar
  • 11.5k
2 votes
Accepted

ModuleHelper::renderModule with custom parameters

Attributes aren't meant to be used inside module context and they're no longer passed there. They're now only available in module chromes. Short of stuffing properties into $module object there isn't ...
Sharky's user avatar
  • 11.5k
1 vote
Accepted

Generated <a> links to wrong URL

The str_replace() call breaks the URL by changing https://mydomain.tld to https:/mydomain.tld. The code can be changed in many ways, depending on your use case. You may add validation to ...
Sharky's user avatar
  • 11.5k
1 vote

New Module title language constant

The constant is MOD_ARTICLES_CATEGORIES and it comes from the language file ..\language\en-GB\mod_articles_categories.sys.ini Changing the value in the sys.ini will change it on the next page load ...
Irata's user avatar
  • 3,972

Only top scored, non community-wiki answers of a minimum length are eligible