<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gba</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gba"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Gba"/>
	<updated>2026-06-22T22:47:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325770</id>
		<title>J1.5 talk:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325770"/>
		<updated>2016-08-18T18:01:25Z</updated>

		<summary type="html">&lt;p&gt;Gba: /* Problem with pagebreak plugin: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem with PHP 5.3 when using this example: ==&lt;br /&gt;
 PHP Warning:  Parameter 2 to plgContent&amp;lt;MostPlugins&amp;gt;::onPrepareContent() expected to be a reference,&lt;br /&gt;
 value given in &amp;lt;whichever plugin cause that&amp;gt; on line &amp;lt;xx&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As of PHP 5.3.0, you will get a warning saying that &amp;quot;call-time pass-by-reference&amp;quot; is deprecated when you use &amp;amp; in foo(&amp;amp;$a);&lt;br /&gt;
See http://php.net/manual/en/language.references.pass.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Example.php in content shows (now wrongly and deprecated in PHP 5.3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, &amp;amp; $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, &#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;$params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SHOULD now be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, $params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FIX:&#039;&#039;&#039;&lt;br /&gt;
-&amp;gt; Going into JOOMLA root and do a global replace through all PHP files will fix this issue.&lt;br /&gt;
&lt;br /&gt;
Furthermore (somewhat related) if you getting the following error: &lt;br /&gt;
 Warning: Missing argument 3 for plgContent&amp;lt;PluginName&amp;gt;::onPrepareContent() &lt;br /&gt;
 in JOOMLA\plugins\content\&amp;lt;PluginName.php&amp;gt; on line xx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
you may also want to change in file JOOMLA\modules\mod_customcontent\helper.php:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 line 36, change the array to: array (&amp;amp; $item, &amp;amp; $params, $limitstart ))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ref: joomlacode.org/gf/project/ianstools/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=10578&lt;br /&gt;
&lt;br /&gt;
Not sure why this did not make the 1.5.15 ... 1.5.18 releases.&lt;br /&gt;
&lt;br /&gt;
== Problem with pagebreak plugin: ==&lt;br /&gt;
At least one of the content plugins called &#039;pagebreak&#039; does fully work in articles, only.&lt;br /&gt;
In a custom component the &#039;&amp;lt;hr class=&amp;quot;system-pagebreak&#039; elements are just removed from the output; this means, any pagebreaks in a custom component&#039;s output are ignored.&lt;br /&gt;
&lt;br /&gt;
This happens in pagebreak.php:96:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if ($params-&amp;gt;get(&#039;intro_only&#039;) || $params-&amp;gt;get(&#039;popup&#039;) || $full || $view != &#039;article&#039;)&lt;br /&gt;
{&lt;br /&gt;
	$row-&amp;gt;text = preg_replace($regex, &#039;&#039;, $row-&amp;gt;text);&lt;br /&gt;
&lt;br /&gt;
	return;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please be aware of that, using this example!&lt;br /&gt;
&lt;br /&gt;
WORKAROUND: If the view of the custom component is named &#039;article&#039;, the plugin processes the pagebreaks.&lt;br /&gt;
Still custom components with other views won&#039;t be able to use the pagebreaks plugin for their output.&lt;br /&gt;
&lt;br /&gt;
[[Special:Contributions/Gba|gba]] 13:01, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325754</id>
		<title>J1.5 talk:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325754"/>
		<updated>2016-08-18T10:04:21Z</updated>

		<summary type="html">&lt;p&gt;Gba: /* Problem with pagebreak plugin: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem with PHP 5.3 when using this example: ==&lt;br /&gt;
 PHP Warning:  Parameter 2 to plgContent&amp;lt;MostPlugins&amp;gt;::onPrepareContent() expected to be a reference,&lt;br /&gt;
 value given in &amp;lt;whichever plugin cause that&amp;gt; on line &amp;lt;xx&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As of PHP 5.3.0, you will get a warning saying that &amp;quot;call-time pass-by-reference&amp;quot; is deprecated when you use &amp;amp; in foo(&amp;amp;$a);&lt;br /&gt;
See http://php.net/manual/en/language.references.pass.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Example.php in content shows (now wrongly and deprecated in PHP 5.3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, &amp;amp; $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, &#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;$params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SHOULD now be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, $params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FIX:&#039;&#039;&#039;&lt;br /&gt;
-&amp;gt; Going into JOOMLA root and do a global replace through all PHP files will fix this issue.&lt;br /&gt;
&lt;br /&gt;
Furthermore (somewhat related) if you getting the following error: &lt;br /&gt;
 Warning: Missing argument 3 for plgContent&amp;lt;PluginName&amp;gt;::onPrepareContent() &lt;br /&gt;
 in JOOMLA\plugins\content\&amp;lt;PluginName.php&amp;gt; on line xx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
you may also want to change in file JOOMLA\modules\mod_customcontent\helper.php:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 line 36, change the array to: array (&amp;amp; $item, &amp;amp; $params, $limitstart ))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ref: joomlacode.org/gf/project/ianstools/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=10578&lt;br /&gt;
&lt;br /&gt;
Not sure why this did not make the 1.5.15 ... 1.5.18 releases.&lt;br /&gt;
&lt;br /&gt;
== Problem with pagebreak plugin: ==&lt;br /&gt;
At least one of the content plugins called &#039;pagebreak&#039; does fully work in articles, only.&lt;br /&gt;
In a custom component the &#039;&amp;lt;hr class=&amp;quot;system-pagebreak&#039; elements are just removed from the output; this means, any pagebreaks in a custom component&#039;s output are ignored.&lt;br /&gt;
&lt;br /&gt;
This happens in pagebreak.php:96:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if ($params-&amp;gt;get(&#039;intro_only&#039;) || $params-&amp;gt;get(&#039;popup&#039;) || $full || $view != &#039;article&#039;)&lt;br /&gt;
{&lt;br /&gt;
	$row-&amp;gt;text = preg_replace($regex, &#039;&#039;, $row-&amp;gt;text);&lt;br /&gt;
&lt;br /&gt;
	return;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please be aware of that, using this example!&lt;br /&gt;
&lt;br /&gt;
[[Special:Contributions/Gba|gba]] 05:04, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325753</id>
		<title>J1.5 talk:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325753"/>
		<updated>2016-08-18T10:04:05Z</updated>

		<summary type="html">&lt;p&gt;Gba: /* Problem with pagebreak plugin: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem with PHP 5.3 when using this example: ==&lt;br /&gt;
 PHP Warning:  Parameter 2 to plgContent&amp;lt;MostPlugins&amp;gt;::onPrepareContent() expected to be a reference,&lt;br /&gt;
 value given in &amp;lt;whichever plugin cause that&amp;gt; on line &amp;lt;xx&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As of PHP 5.3.0, you will get a warning saying that &amp;quot;call-time pass-by-reference&amp;quot; is deprecated when you use &amp;amp; in foo(&amp;amp;$a);&lt;br /&gt;
See http://php.net/manual/en/language.references.pass.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Example.php in content shows (now wrongly and deprecated in PHP 5.3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, &amp;amp; $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, &#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;$params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SHOULD now be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, $params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FIX:&#039;&#039;&#039;&lt;br /&gt;
-&amp;gt; Going into JOOMLA root and do a global replace through all PHP files will fix this issue.&lt;br /&gt;
&lt;br /&gt;
Furthermore (somewhat related) if you getting the following error: &lt;br /&gt;
 Warning: Missing argument 3 for plgContent&amp;lt;PluginName&amp;gt;::onPrepareContent() &lt;br /&gt;
 in JOOMLA\plugins\content\&amp;lt;PluginName.php&amp;gt; on line xx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
you may also want to change in file JOOMLA\modules\mod_customcontent\helper.php:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 line 36, change the array to: array (&amp;amp; $item, &amp;amp; $params, $limitstart ))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ref: joomlacode.org/gf/project/ianstools/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=10578&lt;br /&gt;
&lt;br /&gt;
Not sure why this did not make the 1.5.15 ... 1.5.18 releases.&lt;br /&gt;
&lt;br /&gt;
== Problem with pagebreak plugin: ==&lt;br /&gt;
At least one of the content plugins called &#039;pagebreak&#039; does fully work in articles, only.&lt;br /&gt;
In a custom component the &#039;&amp;lt;hr class=&amp;quot;system-pagebreak&#039; elements are just removed from the output; this means, any pagebreaks in a custom component&#039;s output are ignored.&lt;br /&gt;
&lt;br /&gt;
This happens in pagebreak.php:96:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if ($params-&amp;gt;get(&#039;intro_only&#039;) || $params-&amp;gt;get(&#039;popup&#039;) || $full || $view != &#039;article&#039;)&lt;br /&gt;
{&lt;br /&gt;
	$row-&amp;gt;text = preg_replace($regex, &#039;&#039;, $row-&amp;gt;text);&lt;br /&gt;
&lt;br /&gt;
	return;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please be aware of that, using this example!&lt;br /&gt;
[[Special:Contributions/Gba|gba]] 05:04, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325752</id>
		<title>J3.x:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325752"/>
		<updated>2016-08-18T10:02:45Z</updated>

		<summary type="html">&lt;p&gt;Gba: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{version|2.5,3.x}}&lt;br /&gt;
A common example of [[Supporting plugins in your component|using plugins]] is to run the &#039;&#039;&#039;content plugins&#039;&#039;&#039; on some text. This is useful if you want to support plugins that usually work on Content from a custom extension. For the content prepare trigger you can simply call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$text = JHtml::_(&#039;content.prepare&#039;, $text);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For any other content triggers you must call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$article = new stdClass;&lt;br /&gt;
$article-&amp;gt;text = $text;&lt;br /&gt;
&lt;br /&gt;
// add more to parameters if needed&lt;br /&gt;
$params = new JObject;&lt;br /&gt;
&lt;br /&gt;
// Note JDispatcher is deprecated in favour of JEventDispatcher in Joomla 3.x however still works.&lt;br /&gt;
JPluginHelper::importPlugin(&#039;content&#039;);&lt;br /&gt;
$dispatcher = JDispatcher::getInstance();&lt;br /&gt;
$dispatcher-&amp;gt;trigger(&#039;onContentPrepare&#039;, array(&#039;some.context&#039;, &amp;amp;$article, &amp;amp;$params, 0));&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might want to look at core components (for example com_content) for an example. See the [[Plugin/Events|triggers page]] for the possible content plugin triggers.&lt;br /&gt;
&lt;br /&gt;
Also for PHP5.3 compliance please look at the discussion page.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Extension development]][[Category:Plugins]]&lt;br /&gt;
[[Category:Plugin Development]]&lt;br /&gt;
[[Category:Development Recommended Reading]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please look at the discussion page concerning Joomla pagebreak plugin. [[Special:Contributions/Gba|gba]] 05:02, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325751</id>
		<title>J3.x:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325751"/>
		<updated>2016-08-18T09:58:02Z</updated>

		<summary type="html">&lt;p&gt;Gba: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{version|2.5,3.x}}&lt;br /&gt;
A common example of [[Supporting plugins in your component|using plugins]] is to run the &#039;&#039;&#039;content plugins&#039;&#039;&#039; on some text. This is useful if you want to support plugins that usually work on Content from a custom extension. For the content prepare trigger you can simply call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$text = JHtml::_(&#039;content.prepare&#039;, $text);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For any other content triggers you must call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$article = new stdClass;&lt;br /&gt;
$article-&amp;gt;text = $text;&lt;br /&gt;
&lt;br /&gt;
// add more to parameters if needed&lt;br /&gt;
$params = new JObject;&lt;br /&gt;
&lt;br /&gt;
// Note JDispatcher is deprecated in favour of JEventDispatcher in Joomla 3.x however still works.&lt;br /&gt;
JPluginHelper::importPlugin(&#039;content&#039;);&lt;br /&gt;
$dispatcher = JDispatcher::getInstance();&lt;br /&gt;
$dispatcher-&amp;gt;trigger(&#039;onContentPrepare&#039;, array(&#039;some.context&#039;, &amp;amp;$article, &amp;amp;$params, 0));&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might want to look at core components (for example com_content) for an example. See the [[Plugin/Events|triggers page]] for the possible content plugin triggers.&lt;br /&gt;
&lt;br /&gt;
Also for PHP5.3 compliance please look at the discussion page.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Extension development]][[Category:Plugins]]&lt;br /&gt;
[[Category:Plugin Development]]&lt;br /&gt;
[[Category:Development Recommended Reading]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please look at the discussion page concerning Joomla pagebreak plugin. [[User:Gba|gba]] ([[User talk:Gba|talk]]) 04:58, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325750</id>
		<title>J3.x:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325750"/>
		<updated>2016-08-18T09:56:08Z</updated>

		<summary type="html">&lt;p&gt;Gba: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{version|2.5,3.x}}&lt;br /&gt;
A common example of [[Supporting plugins in your component|using plugins]] is to run the &#039;&#039;&#039;content plugins&#039;&#039;&#039; on some text. This is useful if you want to support plugins that usually work on Content from a custom extension. For the content prepare trigger you can simply call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$text = JHtml::_(&#039;content.prepare&#039;, $text);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For any other content triggers you must call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$article = new stdClass;&lt;br /&gt;
$article-&amp;gt;text = $text;&lt;br /&gt;
&lt;br /&gt;
// add more to parameters if needed&lt;br /&gt;
$params = new JObject;&lt;br /&gt;
&lt;br /&gt;
// Note JDispatcher is deprecated in favour of JEventDispatcher in Joomla 3.x however still works.&lt;br /&gt;
JPluginHelper::importPlugin(&#039;content&#039;);&lt;br /&gt;
$dispatcher = JDispatcher::getInstance();&lt;br /&gt;
$dispatcher-&amp;gt;trigger(&#039;onContentPrepare&#039;, array(&#039;some.context&#039;, &amp;amp;$article, &amp;amp;$params, 0));&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might want to look at core components (for example com_content) for an example. See the [[Plugin/Events|triggers page]] for the possible content plugin triggers.&lt;br /&gt;
&lt;br /&gt;
Also for PHP5.3 compliance please look at the discussion page.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Extension development]][[Category:Plugins]]&lt;br /&gt;
[[Category:Plugin Development]]&lt;br /&gt;
[[Category:Development Recommended Reading]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please look at the discussion page concerning Joomla pagebreak plugin. &amp;lt;a href=&amp;quot;https://docs.joomla.org/Special:Contributions/Gba&amp;quot;&amp;gt;gba&amp;lt;/a&amp;gt; 04:56, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325749</id>
		<title>J3.x:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325749"/>
		<updated>2016-08-18T09:52:26Z</updated>

		<summary type="html">&lt;p&gt;Gba: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{version|2.5,3.x}}&lt;br /&gt;
A common example of [[Supporting plugins in your component|using plugins]] is to run the &#039;&#039;&#039;content plugins&#039;&#039;&#039; on some text. This is useful if you want to support plugins that usually work on Content from a custom extension. For the content prepare trigger you can simply call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$text = JHtml::_(&#039;content.prepare&#039;, $text);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For any other content triggers you must call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$article = new stdClass;&lt;br /&gt;
$article-&amp;gt;text = $text;&lt;br /&gt;
&lt;br /&gt;
// add more to parameters if needed&lt;br /&gt;
$params = new JObject;&lt;br /&gt;
&lt;br /&gt;
// Note JDispatcher is deprecated in favour of JEventDispatcher in Joomla 3.x however still works.&lt;br /&gt;
JPluginHelper::importPlugin(&#039;content&#039;);&lt;br /&gt;
$dispatcher = JDispatcher::getInstance();&lt;br /&gt;
$dispatcher-&amp;gt;trigger(&#039;onContentPrepare&#039;, array(&#039;some.context&#039;, &amp;amp;$article, &amp;amp;$params, 0));&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might want to look at core components (for example com_content) for an example. See the [[Plugin/Events|triggers page]] for the possible content plugin triggers.&lt;br /&gt;
&lt;br /&gt;
Also for PHP5.3 compliance please look at the discussion page.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Extension development]][[Category:Plugins]]&lt;br /&gt;
[[Category:Plugin Development]]&lt;br /&gt;
[[Category:Development Recommended Reading]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please look at the discussion page concerning Joomla pagebreak plugin.gba 04:52, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325748</id>
		<title>J3.x:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J3.x:Triggering_content_plugins_in_your_extension&amp;diff=325748"/>
		<updated>2016-08-18T09:51:10Z</updated>

		<summary type="html">&lt;p&gt;Gba: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{version|2.5,3.x}}&lt;br /&gt;
A common example of [[Supporting plugins in your component|using plugins]] is to run the &#039;&#039;&#039;content plugins&#039;&#039;&#039; on some text. This is useful if you want to support plugins that usually work on Content from a custom extension. For the content prepare trigger you can simply call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$text = JHtml::_(&#039;content.prepare&#039;, $text);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For any other content triggers you must call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$article = new stdClass;&lt;br /&gt;
$article-&amp;gt;text = $text;&lt;br /&gt;
&lt;br /&gt;
// add more to parameters if needed&lt;br /&gt;
$params = new JObject;&lt;br /&gt;
&lt;br /&gt;
// Note JDispatcher is deprecated in favour of JEventDispatcher in Joomla 3.x however still works.&lt;br /&gt;
JPluginHelper::importPlugin(&#039;content&#039;);&lt;br /&gt;
$dispatcher = JDispatcher::getInstance();&lt;br /&gt;
$dispatcher-&amp;gt;trigger(&#039;onContentPrepare&#039;, array(&#039;some.context&#039;, &amp;amp;$article, &amp;amp;$params, 0));&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might want to look at core components (for example com_content) for an example. See the [[Plugin/Events|triggers page]] for the possible content plugin triggers.&lt;br /&gt;
&lt;br /&gt;
Also for PHP5.3 compliance please look at the discussion page.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Extension development]][[Category:Plugins]]&lt;br /&gt;
[[Category:Plugin Development]]&lt;br /&gt;
[[Category:Development Recommended Reading]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please look at the discussion page concerning Joomla pagebreak plugin.[[User:Gba|Gba]] ([[User talk:Gba|talk]]) 04:51, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325747</id>
		<title>J1.5 talk:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325747"/>
		<updated>2016-08-18T09:49:32Z</updated>

		<summary type="html">&lt;p&gt;Gba: /* Problem with pagebreak plugin: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem with PHP 5.3 when using this example: ==&lt;br /&gt;
 PHP Warning:  Parameter 2 to plgContent&amp;lt;MostPlugins&amp;gt;::onPrepareContent() expected to be a reference,&lt;br /&gt;
 value given in &amp;lt;whichever plugin cause that&amp;gt; on line &amp;lt;xx&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As of PHP 5.3.0, you will get a warning saying that &amp;quot;call-time pass-by-reference&amp;quot; is deprecated when you use &amp;amp; in foo(&amp;amp;$a);&lt;br /&gt;
See http://php.net/manual/en/language.references.pass.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Example.php in content shows (now wrongly and deprecated in PHP 5.3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, &amp;amp; $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, &#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;$params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SHOULD now be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, $params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FIX:&#039;&#039;&#039;&lt;br /&gt;
-&amp;gt; Going into JOOMLA root and do a global replace through all PHP files will fix this issue.&lt;br /&gt;
&lt;br /&gt;
Furthermore (somewhat related) if you getting the following error: &lt;br /&gt;
 Warning: Missing argument 3 for plgContent&amp;lt;PluginName&amp;gt;::onPrepareContent() &lt;br /&gt;
 in JOOMLA\plugins\content\&amp;lt;PluginName.php&amp;gt; on line xx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
you may also want to change in file JOOMLA\modules\mod_customcontent\helper.php:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 line 36, change the array to: array (&amp;amp; $item, &amp;amp; $params, $limitstart ))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ref: joomlacode.org/gf/project/ianstools/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=10578&lt;br /&gt;
&lt;br /&gt;
Not sure why this did not make the 1.5.15 ... 1.5.18 releases.&lt;br /&gt;
&lt;br /&gt;
== Problem with pagebreak plugin: ==&lt;br /&gt;
At least one of the content plugins called &#039;pagebreak&#039; does fully work in articles, only.&lt;br /&gt;
In a custom component the &#039;&amp;lt;hr class=&amp;quot;system-pagebreak&#039; elements are just removed from the output; this means, any pagebreaks in a custom component&#039;s output are ignored.&lt;br /&gt;
&lt;br /&gt;
This happens in pagebreak.php:96:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if ($params-&amp;gt;get(&#039;intro_only&#039;) || $params-&amp;gt;get(&#039;popup&#039;) || $full || $view != &#039;article&#039;)&lt;br /&gt;
{&lt;br /&gt;
	$row-&amp;gt;text = preg_replace($regex, &#039;&#039;, $row-&amp;gt;text);&lt;br /&gt;
&lt;br /&gt;
	return;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please be aware of that, using this example!&lt;br /&gt;
[[User:Gba|Gba]] ([[User talk:Gba|talk]]) 04:49, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325746</id>
		<title>J1.5 talk:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325746"/>
		<updated>2016-08-18T09:46:53Z</updated>

		<summary type="html">&lt;p&gt;Gba: /* Problem with pagebreak plugin: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem with PHP 5.3 when using this example: ==&lt;br /&gt;
 PHP Warning:  Parameter 2 to plgContent&amp;lt;MostPlugins&amp;gt;::onPrepareContent() expected to be a reference,&lt;br /&gt;
 value given in &amp;lt;whichever plugin cause that&amp;gt; on line &amp;lt;xx&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As of PHP 5.3.0, you will get a warning saying that &amp;quot;call-time pass-by-reference&amp;quot; is deprecated when you use &amp;amp; in foo(&amp;amp;$a);&lt;br /&gt;
See http://php.net/manual/en/language.references.pass.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Example.php in content shows (now wrongly and deprecated in PHP 5.3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, &amp;amp; $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, &#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;$params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SHOULD now be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, $params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FIX:&#039;&#039;&#039;&lt;br /&gt;
-&amp;gt; Going into JOOMLA root and do a global replace through all PHP files will fix this issue.&lt;br /&gt;
&lt;br /&gt;
Furthermore (somewhat related) if you getting the following error: &lt;br /&gt;
 Warning: Missing argument 3 for plgContent&amp;lt;PluginName&amp;gt;::onPrepareContent() &lt;br /&gt;
 in JOOMLA\plugins\content\&amp;lt;PluginName.php&amp;gt; on line xx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
you may also want to change in file JOOMLA\modules\mod_customcontent\helper.php:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 line 36, change the array to: array (&amp;amp; $item, &amp;amp; $params, $limitstart ))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ref: joomlacode.org/gf/project/ianstools/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=10578&lt;br /&gt;
&lt;br /&gt;
Not sure why this did not make the 1.5.15 ... 1.5.18 releases.&lt;br /&gt;
&lt;br /&gt;
== Problem with pagebreak plugin: ==&lt;br /&gt;
At least one of the content plugins called &#039;pagebreak&#039; does fully work in articles, only.&lt;br /&gt;
In a custom component the &#039;&amp;lt;hr class=&amp;quot;system-pagebreak&#039; elements are just removed from the output; this means, any pagebreaks in a custom component&#039;s output are ignored.&lt;br /&gt;
&lt;br /&gt;
This happens in pagebreak.php:96:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if ($params-&amp;gt;get(&#039;intro_only&#039;) || $params-&amp;gt;get(&#039;popup&#039;) || $full || $view != &#039;article&#039;)&lt;br /&gt;
{&lt;br /&gt;
	$row-&amp;gt;text = preg_replace($regex, &#039;&#039;, $row-&amp;gt;text);&lt;br /&gt;
&lt;br /&gt;
	return;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please be aware of that, using this example!&lt;br /&gt;
[[User:Gba|Gba]] ([[User talk:Gba|talk]]) 04:46, 18 August 2016 (CDT)&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325745</id>
		<title>J1.5 talk:Triggering content plugins in your extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Triggering_content_plugins_in_your_extension&amp;diff=325745"/>
		<updated>2016-08-18T09:46:28Z</updated>

		<summary type="html">&lt;p&gt;Gba: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem with PHP 5.3 when using this example: ==&lt;br /&gt;
 PHP Warning:  Parameter 2 to plgContent&amp;lt;MostPlugins&amp;gt;::onPrepareContent() expected to be a reference,&lt;br /&gt;
 value given in &amp;lt;whichever plugin cause that&amp;gt; on line &amp;lt;xx&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As of PHP 5.3.0, you will get a warning saying that &amp;quot;call-time pass-by-reference&amp;quot; is deprecated when you use &amp;amp; in foo(&amp;amp;$a);&lt;br /&gt;
See http://php.net/manual/en/language.references.pass.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Example.php in content shows (now wrongly and deprecated in PHP 5.3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, &amp;amp; $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, &#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;$params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SHOULD now be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
        $dispatcher-&amp;gt;trigger(&#039;onPrepareContent&#039;, array (&amp;amp; $item, $item-&amp;gt;params, 0)); &lt;br /&gt;
        or could be: function onPrepareContent( &amp;amp;$article, $params, $limitstart );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;FIX:&#039;&#039;&#039;&lt;br /&gt;
-&amp;gt; Going into JOOMLA root and do a global replace through all PHP files will fix this issue.&lt;br /&gt;
&lt;br /&gt;
Furthermore (somewhat related) if you getting the following error: &lt;br /&gt;
 Warning: Missing argument 3 for plgContent&amp;lt;PluginName&amp;gt;::onPrepareContent() &lt;br /&gt;
 in JOOMLA\plugins\content\&amp;lt;PluginName.php&amp;gt; on line xx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
you may also want to change in file JOOMLA\modules\mod_customcontent\helper.php:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
 line 36, change the array to: array (&amp;amp; $item, &amp;amp; $params, $limitstart ))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ref: joomlacode.org/gf/project/ianstools/tracker/?action=TrackerItemEdit&amp;amp;tracker_item_id=10578&lt;br /&gt;
&lt;br /&gt;
Not sure why this did not make the 1.5.15 ... 1.5.18 releases.&lt;br /&gt;
&lt;br /&gt;
== Problem with pagebreak plugin: ==&lt;br /&gt;
At least one of the content plugins called &#039;pagebreak&#039; does fully work in articles, only.&lt;br /&gt;
In a custom component the &#039;&amp;lt;hr class=&amp;quot;system-pagebreak&#039; elements are just removed from the output; this means, any pagebreaks in a custom component&#039;s output are ignored.&lt;br /&gt;
&lt;br /&gt;
This happens in pagebreak.php:96:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if ($params-&amp;gt;get(&#039;intro_only&#039;) || $params-&amp;gt;get(&#039;popup&#039;) || $full || $view != &#039;article&#039;)&lt;br /&gt;
{&lt;br /&gt;
	$row-&amp;gt;text = preg_replace($regex, &#039;&#039;, $row-&amp;gt;text);&lt;br /&gt;
&lt;br /&gt;
	return;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please be aware of that, using this example!&lt;/div&gt;</summary>
		<author><name>Gba</name></author>
	</entry>
</feed>