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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.