I have a plugin using onContentPrepare.
Create two modules:
Module 2 (from Articles - Newsflash (Legacy)) works perfect.
Module 1 (from the new Articles) does not trigger onContentPrepare
Both modules should display the same result
Module 1 does not process the onContentPrepare.
Both Joomla 5 and 6 (alpha)
Solution:
Add in \modules\mod_articles\src\Helper\ArticlesHelper.php after line 343:
'onContentPrepare' => new Content\ContentPrepareEvent('onContentPrepare', $contentEventArguments),
above the line:
'afterDisplayTitle' => new Content\AfterTitleEvent('onContentAfterTitle', $contentEventArguments),
This is consistent with the code in:
\modules\mod_articles_news\src\Helper\ArticlesNewsHelper.php
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Thank you for reporting! As you have already a solution, would you like to make yourself a PR?
You're welcome. Sorry, but I have no idea how I should make a PR myself
I will do it for you.
Contributing is fun but has a leaning curve. Maybe next time .. if you are interested - find some information here: https://manual.joomla.org/docs/get-started/git/github-joomla-cms/#make-a-pull-request
Thank you! I will study the documentation for next time.
Labels |
Added:
bug
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-08-01 07:13:01 |
Closed_By | ⇒ | richard67 |
Thank you for reporting! As you have already a solution, would you like to make yourself a PR?