0
votes

I have been learning to develop my own plugins and components for joomla! 2.5.

After a couple of months of developing features for my site, I am starting to realise that some of the components I have created could have probably been just as effective if I'd developed them as a plugin for com_content or com_user.

My question is what's the best way to decided if a full component is needed and when is it ok to use one or multiple plugins to give the same functionality.

My feeling at the moment is that plugins are a much nicer way to go due to them being self contained. Maybe I've answered my own question, and components are needed when interaction between elements is more complicated, where as plugins can be used for very modular functions.

Anyone else have a view?

1

1 Answers

2
votes

Components and Plugins are completely different types of extensions.

Components are applications/systems that will appear in the content area such as VirtueMart and where the articles are shown. Consider them as software for you computer.

Plugins are there to manipulate Joomla and/or there extensions it's using. They contains functions that are associated with trigger events. So in a nutshell, they are there to extend the functionality of an existing extension.

So so answer your question, have a think about what you are creating and if will be an aplication or something to extend functionality.

Hope this helps