I've got a php file with a function in it which gets a list of items from a source file and then formats that list with some html. At the end, it returns a var ($html) containing the html formatted list.
What I'd like to know how to do is return this html formatted list to a content article, so it can be displayed in an article. I have several different articles wherein I'd like to display this list. So, what I'd like is to be able to write the content for each article and then, at some point in the article, display the list using a function call of some kind. I just don't know how to do this.
I should note that I'm using Joomla 1.5 (yeah, I know... it's completely out of my hands). I looked into adding plugins which would allow me to write php code right in a content article but there are two problems with that: 1) those plugins don't work with Joomla 1.5 and 2) Then I'd have to maintain the same code in several different articles.
Ideally, I should just be able to write {ShowList} (or whatever) somewhere in my article and have it display the list.
How can this be done?
WATYF