User tests: Successful: Unsuccessful:
This PR adds an extra event trigger to the module rendering process.
This way plugins can manipulate the rendered output of modules separately.
To test, create a system plugin foobar
with this:
class PlgSystemFooBar extends JPlugin
{
public function onAfterRoute()
{
JFactory::getApplication()->registerEvent('onAfterRenderModule', array($this, 'onAfterRenderModule'));
}
public function onAfterRenderModule(&$module)
{
if (is_null($module))
{
return;
}
$module->content = '<p style="color:red">Module content replaced</p>';
}
}
Or add the registerEvent and onAfterRenderModule code to an existing plugin.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
That PR is for the complete module position. Modules (plural) as opposed to module.
So not a duplicate. Different use.
Ah, ok, I see. Thanks for the clarification.
Milestone |
Added: |
Milestone |
Removed: |
Labels |
Added:
?
|
Easy | No | ⇒ | Yes |
Milestone |
Added: |
Category | ⇒ | Libraries |
Are these three issues related #8693 #8296 #3105
I have tested this item successfully on abfc4ee
Thanks nonumber!
I have tested this item successfully on abfc4ee
Any chance this can get merged before it gets out of sync?
+1 with Peter. This is a needed improvement
(someone has set this to 3.6 milestone)
thank you Brian.
Sorry for my ignorance about all this process. Does this mean that it will integrated, or is it still waiting for something like says the "pr-staging" label ?
What it means is that someone has decided that this can only be merged in Joomla 3.6
So should I change this so it is a PR to the 3.6.x branch?
Or does this just stay open till someone feels like merging it to that branch?
As far as I know its the latter
On 27 January 2016 at 11:50, Peter van Westen notifications@github.com
wrote:
So should I change this so it is a PR to the 3.6.x branch?
Or does this just stay open till someone feels like merging it to that
branch?—
Reply to this email directly or view it on GitHub
#8296 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-01-28 20:25:35 |
Closed_By | ⇒ | wilsonge |
Milestone |
Added: |
Milestone |
Removed: |
Thanks :)
As a non dev, I will let you got for it but let me know if any help is needed.
https://docs.joomla.org/Plugin/Events
Thanks all
@nonumber Makes sense to have such a trigger, thank you! Please remove the whitespaces in line 260.