User

User:Over/Step by step to a Joomla Module - Overrides

From Joomla! Documentation

Under Construction

This user page or section is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well. If this user page or section has not been edited in several days, please remove this template.
This page was last edited by Over (talk| contribs) 12 years ago. (Purge)

module tutorial
module tutorial

Introduction

This is a multiple article series on how to develop a module for Joomla! version Joomla 3.x. We go step by step from basic functionality to some more advanced. At the end of the tutorial we'll use your custom module to show you, how you can use the powerful output override ( = change ) methods provided by Joomla!. The only prerequisite for overrides is that the module or component comply to the Joomla! best practices. Navigate the articles in this series by using the navigation box to the right (the Articles in this series). Start with the first and follow them one by one. The next article builds on the knowledge and the files from the previous.

A Tip!

As the links on this page are references, you should open them in a new browser window/tab.

In this step we'll use your custom module to show you how you can use the powerful Joomla! methods to override ( = change ) the output. The same possibilities are valid for all modules and components that follows the Joomla! best practice.

Your site template

As you probably know, your template is found under the templates/ folder in your Joomla! directory. The folders important for our overrides are:

  • yourtemplate
    • css
    • html
      • com_mycomponent
        • view1
        • view2
      • layouts
      • mod_yourmodule
        • default.php
        • alternative.php
    • images
    • js

If we add files in those directories they will be used instead of the extensions files.