You could create a content
plugin that incorporates your existing function. A content plugin simply looks for a string (e.g. {showlist}
) and replaces it with what ever it defined to replace it with.
For an example look at the LoadModule
content plugin in /plugins/content/
— specifically the two files that make up the plugin. loadmodule.php
and loadmodule.xml
.
That plugin looks for the strings {loadposition}
in response to an onPrepareContent
event and replaces it with the output of the module assigned to that position.
You can read about plugins and creating plugins on the Joomla! docs website. Please note that plugins haven't changed that much since 1.5, mostly it is just the event names that have changed, but you can check against the core 1.5 plugins for those details.