0

I want to create some function for rendering images from within Joomla v1.5.23. That function should be visible through all joomla application.

Where I have to put that function? Should I create plug in, modul or something else?

Best regards

GDP
  • 8,109
  • 6
  • 45
  • 82
kukipei
  • 631
  • 2
  • 8
  • 32

1 Answers1

6

Version info would be helpful, but I believe your answer is to create a plugin. Components are very broad "mini applications" installed and executed within Joomla. Modules are typically pieces of code that display information from a component, or an outside source. Plugins have various places within Joomla, depending on what they do - like authentication, or admin, etc. You'll have to define what role the plugin will play to determine where it fits into that hierarchy. Once done though, the plugin will be loaded, and you'll be able to access it's functions from within Joomla.

This link will show you how to begin by writing a content plugin. Note the events that are available. This isn't too difficult to do, so don't overcomplicate it, and you should be fine. An example of a System Plugin (which sounds like what you're looking for) can be seen at http://docs.joomla.org/Plugin/Events/System.

GDP
  • 8,109
  • 6
  • 45
  • 82
  • Good luck with it...as I say, i'ts not difficult, and there are plenty of examples at JED to look at if you get stuck on how to accomplish something – GDP Jun 27 '12 at 19:34
  • Can you please tell me what is JED? – kukipei Jun 27 '12 at 19:38