Create a custom module which requires plugin prepared content such as {myplugin dosomething}. Enable PrepareContent in the plugin.
I expect onContentPrepare() to be passed the module object in the same way that it is passed an article object.
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.
Labels |
Added:
No Code Attached Yet
bug
Removed: ? |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-09-25 08:42:55 |
Closed_By | ⇒ | Hackwar |
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.