SlideShare a Scribd company logo
1 of 19
Vishwash Gaur

                  © 2012 Vishwash Gaur. All rights reserved.
All registered trademarks, logos, products and service names belong to their
                              respective owners.
       Image Credit: http://ayadipro.com/blog/high-tech-education/25-improvements-in-joomla-2-5/
Disclaimer: Images used on this slide are for representative purposes only and belong to their respective owners.
   Basic knowledge of HTML, PHP and MySQL
   Interest in MVC and CMS frameworks to reduce development
    time
   A web server with PHP/MySQL installed on it
   Joomla! 2.5 package downloaded and installed
    ◦ it can be downloaded from http://www.joomla.org/download.html


   NOTE: This presentation is focused for the beginners in Joomla! and would
    cover only a basic overview due to limited time. Further details can be
    discussed separately later.
An overview of both the
Joomla! Extensions to
understand the
basics, conventions and
structure.
   What is a module?
    ◦ Modules are lightweight and flexible extensions
      used for page rendering. These modules are often
      “boxes” arranged around a component on a typical
      page. A well-known example is the login module.
   Why should we use a module?
    ◦ Can work standalone
    ◦ Good for code reusability
    ◦ Can work with component for database linking
   Conventions
    ◦ Module name should be in small letters
    ◦ Module name should have a prefix “mod_”
   Depends on template
   Added in template using below code:
    ◦ <jdoc:include type="modules" name=“module-positon-
      name" />
   Can be more than one modules on a page
   Go to Joomla! Admin Panel
   Access Top Menu>Extensions>Template
    Manager
   Click on options button on the top-right side
    of the toolbar
   Enable the “Preview module positions”
   Go to website front panel and add “?tp=1” to
    the url
    ◦ It will reveal the module positions in a Joomla
      template
Go to template manager
Click on options
Enable setting to preview
module positions
http://yoursite.com/index.php?tp=1




 Open your
 page with
 “?tp=1” at the
 end of url and
 it will reveal
 all Module
 positions
   Mod_modulename – module folder
    ◦ mod_modulename.xml
    ◦ mod_modulename.php
    ◦ helper.php: This helper file contains a class to
      provide various static functions to perform
      operations. It could be used to perform some
      calculation or to fetch data from DB.
    ◦ index.html: It is an empty file and created to
      prevent direct access to the directory.
    ◦ tmpl folder
      default.php:
      index.html: It is an empty file and created to prevent
       direct access to the directory.
   What is component?
    ◦ Components are the main functional units of
      Joomla!; they can be seen as mini-applications.
    ◦ A component can contain a module and a plug-in
   Why should we use a component?
    ◦ To manage more functional part or application
    ◦ To provide backend handling to a front-end
      functionality
   Conventions
    ◦ Component name should be prefixed by “com_” e.g.
      com_componentname
    ◦ Component name should start with small letters
   Depends on template
   Added in template using below code:
    ◦ <jdoc:include type="component" />
   Can be only one component on a page
Image credit: http://www.slideshare.net/silenceit/joomlacontent-management-system
Website Backend:
Website Front-end:
                                         admin/index.html
helloworld.xml                           admin/helloworld.php
site/index.html                          admin/controller.php
site/helloworld.php                      admin/models/index.html
                                         admin/models/fields/index.html
site/controller.php
                                         admin/models/fields/helloworld.php
site/views/index.html                    admin/models/forms/index.html
site/views/helloworld/index.html         admin/models/forms/helloworld.xml
site/views/helloworld/view.html.php      admin/models/helloworld.php
                                         admin/models/helloworlds.php
site/views/helloworld/tmpl/index.html    admin/views/index.html
site/views/helloworld/tmpl/default.xml   admin/views/helloworlds/index.html
site/views/helloworld/tmpl/default.php   admin/views/helloworlds/view.html.php
                                         admin/views/helloworlds/tmpl/index.html
site/models/index.html
                                         admin/views/helloworlds/tmpl/default.php
site/models/helloworld.php               admin/views/helloworlds/tmpl/default_head.php
                                         admin/views/helloworlds/tmpl/default_body.php
                                         admin/views/helloworlds/tmpl/default_foot.php
                                         admin/views/helloworld/index.html
                                         admin/views/helloworld/view.html.php
                                         admin/views/helloworld/tmpl/index.html
                                         admin/views/helloworld/tmpl/edit.php
                                         admin/tables/index.html
                                         admin/tables/helloworld.php
                                         admin/language/en-GB/en-GB.com_helloworld.ini
                                         admin/language/en-GB/en-
                                         GB.com_helloworld.menu.ini
                                         admin/controllers/index.html
                                         admin/controllers/helloworld.php
                                         admin/controllers/helloworlds.php
   I look forward to learn and share more with you in
    future too.

   I can be reached easily at my blog
    www.vishwashgaur.com and/or using twitter
    @vishwashgaur
   XAMP: http://www.apachefriends.org/en/xampp.html
   Joomla!: http://www.joomla.org/
   JED: http://extensions.joomla.org/
   Joomla! Forum: http://forum.joomla.org/
   Joomla! Magazine: http://magazine.joomla.org/authors/itemlist/user/65-Nicholas-G-Antimisiaris
   Joomla documentation: http://docs.joomla.org/
   Joomla 2.5 essential training: http://www.lynda.com/Joomla-tutorials/Joomla-Essential-Training/95699-2.html
   Joomla! For beginners guide 2012: http://www.danconia.com/joomla-for-beginners-guide-2012.html
   Joomla! Developers guide: http://cocoate.com/sites/cocoate.com/files/private/jdev.pdf

More Related Content

What's hot

Getting Started with the Joomla! Framework
Getting Started with the Joomla! FrameworkGetting Started with the Joomla! Framework
Getting Started with the Joomla! Framework
Michael Babker
 
Techgig Webinar: Joomla Introduction and Module Development June 2012
Techgig Webinar: Joomla Introduction and Module Development June 2012Techgig Webinar: Joomla Introduction and Module Development June 2012
Techgig Webinar: Joomla Introduction and Module Development June 2012
Vishwash Gaur
 
Joomla
JoomlaJoomla
Joomla
Shelly
 

What's hot (20)

Joomla Explained - As Easy as 1, 2, 3
Joomla Explained - As Easy as 1, 2, 3Joomla Explained - As Easy as 1, 2, 3
Joomla Explained - As Easy as 1, 2, 3
 
Custom Template for Joomla! 3
Custom Template for Joomla! 3Custom Template for Joomla! 3
Custom Template for Joomla! 3
 
Social website
Social websiteSocial website
Social website
 
Getting Started with the Joomla! Framework
Getting Started with the Joomla! FrameworkGetting Started with the Joomla! Framework
Getting Started with the Joomla! Framework
 
Joomla - CMS
Joomla - CMSJoomla - CMS
Joomla - CMS
 
Joomla 15 Quickstart
Joomla 15 QuickstartJoomla 15 Quickstart
Joomla 15 Quickstart
 
Joomla
JoomlaJoomla
Joomla
 
Joomla Tutorial: Joomla 2.5 a first look
Joomla Tutorial: Joomla 2.5 a first lookJoomla Tutorial: Joomla 2.5 a first look
Joomla Tutorial: Joomla 2.5 a first look
 
Introduction to Joomla
Introduction to JoomlaIntroduction to Joomla
Introduction to Joomla
 
Joomla CMS SEMINAR PPT
Joomla CMS SEMINAR PPTJoomla CMS SEMINAR PPT
Joomla CMS SEMINAR PPT
 
CMS and Joomla
CMS and JoomlaCMS and Joomla
CMS and Joomla
 
Joomla Tomorrow and Beyond
Joomla Tomorrow and BeyondJoomla Tomorrow and Beyond
Joomla Tomorrow and Beyond
 
Joomla-Content Management System
Joomla-Content Management SystemJoomla-Content Management System
Joomla-Content Management System
 
Techgig Webinar: Joomla Introduction and Module Development June 2012
Techgig Webinar: Joomla Introduction and Module Development June 2012Techgig Webinar: Joomla Introduction and Module Development June 2012
Techgig Webinar: Joomla Introduction and Module Development June 2012
 
CMS Joomla
CMS JoomlaCMS Joomla
CMS Joomla
 
What’s new in joomla 3.7
What’s new in joomla 3.7What’s new in joomla 3.7
What’s new in joomla 3.7
 
Quick introduction to joomla
Quick introduction to joomlaQuick introduction to joomla
Quick introduction to joomla
 
Joomla and cms
Joomla and  cmsJoomla and  cms
Joomla and cms
 
Joomla 2.5 New Features and Hidden Gems
Joomla 2.5 New Features and Hidden GemsJoomla 2.5 New Features and Hidden Gems
Joomla 2.5 New Features and Hidden Gems
 
Joomla
JoomlaJoomla
Joomla
 

Viewers also liked

Documento 2. cc.oo. elecciones sindicales 2011
Documento 2. cc.oo. elecciones sindicales 2011Documento 2. cc.oo. elecciones sindicales 2011
Documento 2. cc.oo. elecciones sindicales 2011
Jose Antonio Chamizo
 
What's hot final dls
What's hot final dlsWhat's hot final dls
What's hot final dls
David Smith
 

Viewers also liked (20)

Codigo conducta etico y moral
Codigo conducta etico y moral Codigo conducta etico y moral
Codigo conducta etico y moral
 
Manual del Celíaco
Manual del CelíacoManual del Celíaco
Manual del Celíaco
 
Sales on the Move: Bridging the Gap between Mobile Email and Salesforce
Sales on the Move: Bridging the Gap between Mobile Email and SalesforceSales on the Move: Bridging the Gap between Mobile Email and Salesforce
Sales on the Move: Bridging the Gap between Mobile Email and Salesforce
 
Documento 2. cc.oo. elecciones sindicales 2011
Documento 2. cc.oo. elecciones sindicales 2011Documento 2. cc.oo. elecciones sindicales 2011
Documento 2. cc.oo. elecciones sindicales 2011
 
Fanta uva
Fanta uvaFanta uva
Fanta uva
 
First witch
First witchFirst witch
First witch
 
Mi expo
Mi expoMi expo
Mi expo
 
COOTAXIM PORTAL TURISTICO DEL EJE CAFETERO - INSTALACIONES ADMINISTRATIVAS EN...
COOTAXIM PORTAL TURISTICO DEL EJE CAFETERO - INSTALACIONES ADMINISTRATIVAS EN...COOTAXIM PORTAL TURISTICO DEL EJE CAFETERO - INSTALACIONES ADMINISTRATIVAS EN...
COOTAXIM PORTAL TURISTICO DEL EJE CAFETERO - INSTALACIONES ADMINISTRATIVAS EN...
 
Curso SEO posicionamiento web en buscadores. UPB . Interlat
Curso SEO posicionamiento web en buscadores. UPB . InterlatCurso SEO posicionamiento web en buscadores. UPB . Interlat
Curso SEO posicionamiento web en buscadores. UPB . Interlat
 
INNOVATION IN RETINAL IMAGING: OPPORTUNITIES & CHALLENGES - History of Intrao...
INNOVATION IN RETINAL IMAGING: OPPORTUNITIES & CHALLENGES - History of Intrao...INNOVATION IN RETINAL IMAGING: OPPORTUNITIES & CHALLENGES - History of Intrao...
INNOVATION IN RETINAL IMAGING: OPPORTUNITIES & CHALLENGES - History of Intrao...
 
Nuevo trabajo ok
Nuevo trabajo okNuevo trabajo ok
Nuevo trabajo ok
 
Aenj artology 2012 conf
Aenj artology 2012 confAenj artology 2012 conf
Aenj artology 2012 conf
 
informe sobre motores de búsqueda y herramientas web
informe sobre motores de búsqueda y herramientas web informe sobre motores de búsqueda y herramientas web
informe sobre motores de búsqueda y herramientas web
 
What's hot final dls
What's hot final dlsWhat's hot final dls
What's hot final dls
 
Apparel Men 2010
Apparel Men 2010Apparel Men 2010
Apparel Men 2010
 
betterplace lab around the world 2014 - english
betterplace lab around the world 2014 - englishbetterplace lab around the world 2014 - english
betterplace lab around the world 2014 - english
 
Renovación hoteles. Caso de estudio Hotel Beatriz & Spa (2011)
Renovación hoteles. Caso de estudio Hotel Beatriz & Spa (2011)Renovación hoteles. Caso de estudio Hotel Beatriz & Spa (2011)
Renovación hoteles. Caso de estudio Hotel Beatriz & Spa (2011)
 
eparo - Service Design Immonet iPad-App (Vortrag iico Konferenz 2013 - Rolf ...
eparo - Service Design Immonet iPad-App  (Vortrag iico Konferenz 2013 - Rolf ...eparo - Service Design Immonet iPad-App  (Vortrag iico Konferenz 2013 - Rolf ...
eparo - Service Design Immonet iPad-App (Vortrag iico Konferenz 2013 - Rolf ...
 
Lupus
Lupus Lupus
Lupus
 
High Performance Buildings - Lessons Learned, June 2012
High Performance Buildings - Lessons Learned, June 2012High Performance Buildings - Lessons Learned, June 2012
High Performance Buildings - Lessons Learned, June 2012
 

Similar to Modules and Components Introduction in Joomla! 2.5

Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Nicholas Dionysopoulos
 
Joomla Day India 2009 Business Logic With The Mvc
Joomla Day India 2009   Business Logic With The MvcJoomla Day India 2009   Business Logic With The Mvc
Joomla Day India 2009 Business Logic With The Mvc
Amit Kumar Singh
 
Template overrides austin
Template overrides   austinTemplate overrides   austin
Template overrides austin
Chad Windnagle
 

Similar to Modules and Components Introduction in Joomla! 2.5 (20)

Simple module Development in Joomla! 2.5
Simple module Development in Joomla! 2.5Simple module Development in Joomla! 2.5
Simple module Development in Joomla! 2.5
 
Develop Basic joomla! MVC component for version 3
Develop Basic joomla! MVC component for version 3Develop Basic joomla! MVC component for version 3
Develop Basic joomla! MVC component for version 3
 
Mageguru - magento custom module development
Mageguru -  magento custom module development Mageguru -  magento custom module development
Mageguru - magento custom module development
 
Joomla! Template for Beginners
Joomla! Template for BeginnersJoomla! Template for Beginners
Joomla! Template for Beginners
 
Integrate Shindig with Joomla
Integrate Shindig with JoomlaIntegrate Shindig with Joomla
Integrate Shindig with Joomla
 
Introduction to Magento 2 module development - PHP Antwerp Meetup 2017
Introduction to Magento 2 module development - PHP Antwerp Meetup 2017Introduction to Magento 2 module development - PHP Antwerp Meetup 2017
Introduction to Magento 2 module development - PHP Antwerp Meetup 2017
 
Joomla Day UK 2009 Template Design Presentation
Joomla Day UK 2009 Template Design PresentationJoomla Day UK 2009 Template Design Presentation
Joomla Day UK 2009 Template Design Presentation
 
Joomla! Day UK 2009 Template Design
Joomla! Day UK 2009 Template DesignJoomla! Day UK 2009 Template Design
Joomla! Day UK 2009 Template Design
 
Drupal 8 - Core and API Changes
Drupal 8 - Core and API ChangesDrupal 8 - Core and API Changes
Drupal 8 - Core and API Changes
 
Joomla Templates101
Joomla Templates101Joomla Templates101
Joomla Templates101
 
Joomla Extensions Kung Fu
Joomla Extensions Kung FuJoomla Extensions Kung Fu
Joomla Extensions Kung Fu
 
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
Joomla! Frappe - Κατασκευή εφαρμογών για το Joomla! χωρίς να τραβάτε τα μαλιά...
 
Finding Your Way: Understanding Magento Code
Finding Your Way: Understanding Magento CodeFinding Your Way: Understanding Magento Code
Finding Your Way: Understanding Magento Code
 
Joomla Day India 2009 Business Logic With The Mvc
Joomla Day India 2009   Business Logic With The MvcJoomla Day India 2009   Business Logic With The Mvc
Joomla Day India 2009 Business Logic With The Mvc
 
Template overrides austin
Template overrides   austinTemplate overrides   austin
Template overrides austin
 
JOOMLA
JOOMLAJOOMLA
JOOMLA
 
Creating a basic joomla
Creating a basic joomlaCreating a basic joomla
Creating a basic joomla
 
How to Develop Your First Ever Joomla Template?
How to Develop Your First Ever Joomla Template?How to Develop Your First Ever Joomla Template?
How to Develop Your First Ever Joomla Template?
 
Create / Modification of templates for Joomla! At Joomla! Day Spain 2012
Create / Modification of templates for Joomla!  �At Joomla! Day Spain 2012Create / Modification of templates for Joomla!  �At Joomla! Day Spain 2012
Create / Modification of templates for Joomla! At Joomla! Day Spain 2012
 
Joomla_Training_Presentation
Joomla_Training_PresentationJoomla_Training_Presentation
Joomla_Training_Presentation
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

Modules and Components Introduction in Joomla! 2.5

  • 1. Vishwash Gaur © 2012 Vishwash Gaur. All rights reserved. All registered trademarks, logos, products and service names belong to their respective owners. Image Credit: http://ayadipro.com/blog/high-tech-education/25-improvements-in-joomla-2-5/ Disclaimer: Images used on this slide are for representative purposes only and belong to their respective owners.
  • 2. Basic knowledge of HTML, PHP and MySQL  Interest in MVC and CMS frameworks to reduce development time  A web server with PHP/MySQL installed on it  Joomla! 2.5 package downloaded and installed ◦ it can be downloaded from http://www.joomla.org/download.html  NOTE: This presentation is focused for the beginners in Joomla! and would cover only a basic overview due to limited time. Further details can be discussed separately later.
  • 3. An overview of both the Joomla! Extensions to understand the basics, conventions and structure.
  • 4. What is a module? ◦ Modules are lightweight and flexible extensions used for page rendering. These modules are often “boxes” arranged around a component on a typical page. A well-known example is the login module.  Why should we use a module? ◦ Can work standalone ◦ Good for code reusability ◦ Can work with component for database linking  Conventions ◦ Module name should be in small letters ◦ Module name should have a prefix “mod_”
  • 5.
  • 6. Depends on template  Added in template using below code: ◦ <jdoc:include type="modules" name=“module-positon- name" />  Can be more than one modules on a page
  • 7. Go to Joomla! Admin Panel  Access Top Menu>Extensions>Template Manager  Click on options button on the top-right side of the toolbar  Enable the “Preview module positions”  Go to website front panel and add “?tp=1” to the url ◦ It will reveal the module positions in a Joomla template
  • 8.
  • 9. Go to template manager
  • 11. Enable setting to preview module positions
  • 12. http://yoursite.com/index.php?tp=1 Open your page with “?tp=1” at the end of url and it will reveal all Module positions
  • 13. Mod_modulename – module folder ◦ mod_modulename.xml ◦ mod_modulename.php ◦ helper.php: This helper file contains a class to provide various static functions to perform operations. It could be used to perform some calculation or to fetch data from DB. ◦ index.html: It is an empty file and created to prevent direct access to the directory. ◦ tmpl folder  default.php:  index.html: It is an empty file and created to prevent direct access to the directory.
  • 14. What is component? ◦ Components are the main functional units of Joomla!; they can be seen as mini-applications. ◦ A component can contain a module and a plug-in  Why should we use a component? ◦ To manage more functional part or application ◦ To provide backend handling to a front-end functionality  Conventions ◦ Component name should be prefixed by “com_” e.g. com_componentname ◦ Component name should start with small letters
  • 15. Depends on template  Added in template using below code: ◦ <jdoc:include type="component" />  Can be only one component on a page
  • 17. Website Backend: Website Front-end: admin/index.html helloworld.xml admin/helloworld.php site/index.html admin/controller.php site/helloworld.php admin/models/index.html admin/models/fields/index.html site/controller.php admin/models/fields/helloworld.php site/views/index.html admin/models/forms/index.html site/views/helloworld/index.html admin/models/forms/helloworld.xml site/views/helloworld/view.html.php admin/models/helloworld.php admin/models/helloworlds.php site/views/helloworld/tmpl/index.html admin/views/index.html site/views/helloworld/tmpl/default.xml admin/views/helloworlds/index.html site/views/helloworld/tmpl/default.php admin/views/helloworlds/view.html.php admin/views/helloworlds/tmpl/index.html site/models/index.html admin/views/helloworlds/tmpl/default.php site/models/helloworld.php admin/views/helloworlds/tmpl/default_head.php admin/views/helloworlds/tmpl/default_body.php admin/views/helloworlds/tmpl/default_foot.php admin/views/helloworld/index.html admin/views/helloworld/view.html.php admin/views/helloworld/tmpl/index.html admin/views/helloworld/tmpl/edit.php admin/tables/index.html admin/tables/helloworld.php admin/language/en-GB/en-GB.com_helloworld.ini admin/language/en-GB/en- GB.com_helloworld.menu.ini admin/controllers/index.html admin/controllers/helloworld.php admin/controllers/helloworlds.php
  • 18. I look forward to learn and share more with you in future too.  I can be reached easily at my blog www.vishwashgaur.com and/or using twitter @vishwashgaur
  • 19. XAMP: http://www.apachefriends.org/en/xampp.html  Joomla!: http://www.joomla.org/  JED: http://extensions.joomla.org/  Joomla! Forum: http://forum.joomla.org/  Joomla! Magazine: http://magazine.joomla.org/authors/itemlist/user/65-Nicholas-G-Antimisiaris  Joomla documentation: http://docs.joomla.org/  Joomla 2.5 essential training: http://www.lynda.com/Joomla-tutorials/Joomla-Essential-Training/95699-2.html  Joomla! For beginners guide 2012: http://www.danconia.com/joomla-for-beginners-guide-2012.html  Joomla! Developers guide: http://cocoate.com/sites/cocoate.com/files/private/jdev.pdf

Editor's Notes

  1. Hi, I am Vishwash Gaur. Today, I am going to present a beginner series webinar on the topic of Component and Module development in Joomla 2.5
  2. There would be an added benefit if you have downloaded, installed and used Joomla! a little bit in prior.In reducing the procedural code issues i.e. lack of code reusability, higher debugging time and more
  3. Modules typically makeup the elements of sidebar or content menus. Module complements the content contained in a component; they are not intended to be main sub-stance of the page.Modules are installed through the admin panel, they don’t manipulate any data from the database all what they do is display the contents on the page like examples on the page.
  4. Module folder is located inside the modules directory of either front end or backend as per the case of development.
  5. Components frequently have sophisticated back-end controls. The back-end is commonly used to create and manage the records from database. In Joomla, Content manager and Banner manager are examples of a component.Convention: Decide structure of component before development i.e. for front end, back end or both – it would allow you easy programming reference during the development.