Skip to content

dart-creations.com

Advertisement
Home arrow Joomla arrow Joomla Tutorials arrow The difference between modules and components
Print E-mail
Wednesday, 09 May 2007

The difference between modules and components

Article Audience: Joomla Webmasters

Unless you understand the difference between a module and a component, you will find it very difficult to administer your Joomla installation. This article will explain the difference between modules and components and give examples of the usage of each of them.

Modules

Modules are usually small pieces of functionality designed to present information in your site. They can appear a number of times, on a number of pages in various positions. On the contrary components are a full blown application, usually quite complex and are to the main body if a page. Also each module can be viewed in various pages, and the position of each module can be easily changed. You are allowed to select the menu items where a module is displayed.  A good example of the usage of this functionality is targeted advertising. If your site has various sections, you can create module for each section. Each module will contain a targeted advert for the section. Now instead of showing all the modules, all the time, you customise the visibility of the module such that each advert is displayed only in the relevant menu links. Below you can see a screenshot of how to choose the menu items where a module is displayed. The module is displayed in the highlighted menu items only.

Selecting Menu Items where module should be displayed

Typical examples of standard Joomla modules are the following. As we can see the function of each of the modules mentioned is quite restricted.

  • Main / User / Top and other menus
  • Latest News
  • Popular Articles
  • Polls
  • Login Form
  • Syndication Details
  • etc...

3rd Party Modules include

Installed modules can be found in the Modules > Site Modules menu, or Installers > Modules. Configuration of modules is typically very easy, and is done by clicking on the module in Site Modules page.

Components

On the other hand, a Joomla component is typically more complex, with extensive functionality and capabilities. A component can only be displayed in the main area of a page, and can only be displayed in a single page (usually). Links to components are usually done by creating menu items as shown in the image below. Components usually have a particular page or pages for their configuration.

Create Component Menu Link

Standard Joomla Components

  • FrontPage component - this is used to display the contents in the frontpage. One can decide how many items to show in the frontpage, in how many columns, how many articles to have an intro only or not and various other options. To place a content item in the frontpage, the frontpage option must be checked on.
  • WebLinks - this is a component where the user can configure different link categories and add items to each category.
  • Banners - allows a Joomla website to create and display banners for advertising purposes

3rd Party Components

  • sh404SEF - a component which is used to create Search Engine Friendly URLs for your Joomla content. Besides SEF urls, this component allows you to perform a number of fucntions related SEO (Search Engine Optimization) techniques.
  • VirtueMart - this component is used to create a shopping cart in a Joomla website
  • JoomlaCloner - allows you to backup and restore your Joomla website
  • Image Gallery Components - various image gallery components exist for Joomla

Modules vs Components

   Modules   Components 
Complexity  Low  Usually medium to high
Visibility  Various   Single Page
Position   Various   Main Body only
Configuration   Low  Extensive

 

The Joomla Extensions site lists an extensive number of free and commercial templates. There are also reviews and voting mechanisms to help you decide exactly what extensions are best for your needs. Also the Components section of this site, describes a number of extensions which we have found to be very useful.

Warning: 3rd party extension may compromise your site's security. Always make sure that your code comes from a trusted source.

Comments
Search RSS
Son Nguyen Huy  - Good article   |222.255.31.xxx |2007-09-12 07:44:28
Thank you, this article is really helpfull for me!
Virendra Rathore  - Mr.   |220.224.203.xxx |2008-03-31 04:39:25
It is really a great article for new joomla bib....
sumoycuet@yahoo.com  - Impressive   |116.68.197.xxx |2008-06-12 10:41:44
Good view to end confusion between module and component
Atul Jindal  - er.atul.jindal@gmail.com   |116.193.161.xxx |2008-06-27 18:10:09
Great Information with basics.
Amit  - Excellent article   |125.18.241.xxx |2008-07-01 05:26:11
This article is very useful for me.
sandeep  - thanks   |117.197.144.xxx |2008-07-25 12:25:59
I this is sandeep from Rajpura(Punjab) very impressive article about module and
components.it is very helpful to me.
Ram   |24.172.19.xxx |2008-08-10 19:28:25
Great Article - and some thing missing in the Joomla documentation, but
vital.

Thank you
Pranav  - Great   |122.162.3.xxx |2008-08-26 08:21:39
Its really a very good article. It will really help me a lot.
Jill  - FINALLY!   |216.231.31.xxx |2008-09-11 21:20:30
I've read books, forum pages, the Joomla! site and nothing really made it this
crystal clear. Thanks
thanjeys  - thankz   |122.164.185.xxx |2008-09-14 04:30:48
thankz this article very helpful for newbie
elex   |123.237.186.xxx |2008-09-21 17:11:07
Thanksssssssss.It was a great help for me.
Xero Counter  - Thanx man   |116.193.170.xxx |2008-09-27 09:49:42
This article really helped me to understand the differences between modules and
components. Thx a lot as I was fumbling to find the article on the web.
Ravindra  - Thanks   |122.167.101.xxx |2008-11-01 07:47:31
This artical helped me very much. thanks a lot.
Boomb  - Thanks for your writing   |210.245.110.xxx |2008-11-04 09:18:04
Thanks , this is really useful article. Hope to see more like this
suraj kaushik (masteris009)  - thanks, you pal     |218.248.67.xxx |2009-01-10 16:20:33
I am very thankful to you. These two concepts of joomla made me crazy dear. but
I like this. thanks again.
bhaskar rabha  - Good n nice   |59.90.190.xxx |2009-02-26 12:27:27
u very nicely mention the differences. It is really help full article.
Anonymous   |122.164.14.xxx |2009-05-27 10:25:08

Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Thursday, 22 November 2007 )
 

Sponsors

Login Form






Lost Password?
No account yet? Register

Buy us a beer!

If we've helped you, consider buying a beer €3. It will inspire us to keep on giving! Cheers!


Generated in 0.31688 Seconds