No Code Attached Yet bug
avatar BrainforgeUK
BrainforgeUK
24 Mar 2020

Steps to reproduce the issue

Create a custom module which requires plugin prepared content such as {myplugin dosomething}. Enable PrepareContent in the plugin.

Expected result

I expect onContentPrepare() to be passed the module object in the same way that it is passed an article object.

Actual result

onContentPrepare() is passed an StdClass object with a text property containing the module text. There is no other information about the module properties - such as the ID. For an article all the information I require is in the object.

System information (as much as possible)

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar BrainforgeUK BrainforgeUK - open - 24 Mar 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Mar 2020
avatar Hackwar Hackwar - change - 21 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 21 Feb 2023
avatar Hackwar Hackwar - change - 25 Sep 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-09-25 08:42:55
Closed_By Hackwar
avatar Hackwar Hackwar - close - 25 Sep 2024
avatar Hackwar
Hackwar - comment - 25 Sep 2024

Thank you for reporting this to the project and sorry that it took so long to respond to you. We've been discussing this issue in the maintainers chat and we agree that the event itself is not good, since it is too generalised. However due to backwards compatibility, we wont get out of this anymore. At the same time, the event is used the way it is expected and thus we wont be changing anything here. Maybe your solution would be to react to onRenderModule? Since we can't change this, I'm closing this issue.

Add a Comment

Login with GitHub to post a comment