Menu Content

Shopping Cart

cart
Your Cart is currently empty.

Currencies Accepted


Newsletter

Subscribe to our newsletter


Name:

Email:

Like it? Share it!

Find Us Elsewhere

Follow us on Twitter

Home Joomla Tips Understanding Types of Joomla Extensions

Understanding Types of Joomla Extensions PDF Print E-mail

What is the difference between a Joomla Component, a Module and a Plugin?

This issue can seem rather confusing to a novice Joomla user, but it is really worth understanding this, because each have their specific uses.

A component is often the most complex type of extension. It can be a sophisticated application in its own right, such as an e-commerce store or a social networking system. Typically a component will supply the main content of a Joomla page, will have its own database tables, and can be added as a menu item in the site navigation.

A module is generally a mini-application. It will not generally supply the main content of a page, but instead supplies extra, self-contained output typically in a small area of the Joomla page. It will not normally have its own database tables, but may be linked to a Joomla component, and draw its data from the component tables. Equally, a module may display output drawn from another site entirely, or may display custom code.

Joomla allows a number of module positions to be defined in the template file. These positions will vary according to the template, but typically include the left and right columns, the header and footer, plus a variety of other positions. A module can be assigned to one of these positions through the Joomla module manager, and then will be displayed in that position on some, all or none of those pages, according to choice.

A plugin is often used to modify the output of a Joomla component. It is a piece of code that will normally be executed when specific Joomla events occur: for example, a user logs in, or the content of a Joomla article is rendered. Plugins can be extremely flexible in the way they operate and can be a great way to extend the functionality of existing Joomla applications. There are eight core plugin types, each of which may trigger its own set of Joomla events. These core types are: authentication, content, editors, editors-xtd, search, system, user and xmlrpc.

However it is possible to define custom plugin groups, generating their own custom events, resulting in a very flexible system.

A common usage for a Joomla content plugin is to embed code in the format:-

 

{myplugin}

This is added to a Joomla article. When the article is rendered the plugin code will be replaced by the output of the plugin.

However this format is not compulsory, and content plugins can take many forms.

Components, modules and plugins can all support parameters, allowing the output to be customized. For a component, the parameters are usually specified for the menu item, using the menu manager. For a module, these are set through the module manager. You can normally have more than one instance of a module on the same page, each with its own set of parameters. Plugin parameters can be set through the plugin manager.

 


Spiral Scripts
Written on Saturday, 29 August 2009 15:53 by Spiral Scripts

Viewed 1741 times so far.
Like this? Tweet it to your followers!

Latest articles from Spiral Scripts

Latest 'tweets' from Spiral Scripts

  • Have you tried our Joomla puzzle game? It converts your site photos into an entertaining puzzle game - great for... http://fb.me/wwtKpAYm Link Monday, 30 August 2010 10:33
  • We are currently converting all our extensions for compatibility with Joomla 1.6 as well as Joomla 1.5. http://www.spiralscripts.co.uk Link Monday, 30 August 2010 10:31
  • Swiftgallery Now Supports Joomla 1.6 http://goo.gl/fb/JDmAt Link Sunday, 22 August 2010 17:57
  • Swiftgallery Now Supports Joomla 1.6: Swiftgallery, our image gallery component extension for Joomla now supports ... http://bit.ly/dAtsN3 Link Sunday, 22 August 2010 17:25
  • Updates to Amazon Plugins - Joomla 1.6 Compatibility: Our Amazon Web Services content plugin for Joomla is now com... http://bit.ly/bN2eQr Link Tuesday, 17 August 2010 12:03
blog comments powered by Disqus

 
 
 

VirtueMart Featured Products Grid

Switch View

This module can be used as a replacement for the Virtuemart featured products, top products, random products or recent products modules. It displays product images as a 3 Dimensional Flash slideshow.

£15.00


*****Now compatible with Joomla 1.6******* A module extension for the the Joomla 1.5 + 1.6 CMS. It displays a short excerpt from articles in a selected category or section, or from a specified list of articles, with link and optional thumbnail image.

£12.00


A featured items module that shows selected entries from the SOBI2 business index.

£12.00


*****Now compatible with Joomla 1.6******* A Flash puzzle game for the Joomla! content management system. This would be suitable for a site aimed at children. Compatible with Joomla 1.5 and Joomla 1.6.

£10.00



 
 

fitness