Peter van Westen
ADMIN
The Regular Labs system plugins generally get triggered at 3 points during the rendering process.
At each point in the order you tell them to in the Plugin Manager.
At each point (or stage, or 'event') the plugins will look through the content/html passed to them and see if they should do something with it.
1) onContentPrepare
This is also the level at which the content plugins are triggered. The content of articles and Custom modules (if Prepare Content is on), and some 3rd party extensions is passed through the onContentPrepare trigger.
This can potentially be the most resource-intensive stage, as - depending on the type of page - this can be triggered multiple times. For example, a blog page will run every article through the plugins that get triggered during this event.
2) onAfterDispatch
At this stage the Regular Labs extensions will look at the final HTML output of the component part of the page.
3) onAfterRender
And finally the final HTML of the complete page will be looked at by the plugins.
Depending on how you use the extensions, you can get to a situation where one plugin creates content that should be dealt with by another plugin that has already been triggered. And it therefore doesn't get the chance to do its thing.
In the case of ReReplacer, you could create multiple duplicate replacement items, each with a different search area. To make sure it gets triggered at each of the 3 stages you require.
Please post a rating at the
Joomla! Extensions Directory