What is a Module?

joomla support cheshire manchester merseyside north west ukA MODULE is a lightweight and flexible extension which enables you to present almost any kind of website content in a Joomla! website.

Each Module can be separately controlled so that it is only visible WHEN and WHERE you want it to be seen.

For example, when someone:

  1. selects a Menu Link,
  2. signs into your website,
  3. visits your website from a particular device (example: smartphone).

This is called assigning the Module.

In this article we cover how to assign a Module to a Position and Menu Link.

And how to determine whether the Module will be visible depending upon the device and screen size used by the visitor.

Editing Modules

Users with special permissions (Example: Administrators and Super Users) may edit Module content either after signing into the website:

  • dashboard, or
  • Front End.

Creating new Modules

Daunted at the prospect of creating a new MODULE?

No worries.

WYNCHCO website designs include lots of exemplar MODULES which have been pre-assigned by:

  • Position, and
  • Menu Link.

Look for an existing MODULE that appears similar to one that you want to create.

Duplicate it.

And then tweak its settings as required.

We cover how to create and duplicate Modules in this article.

 

Core & 3rd Party Modules

The Joomla! CMS already contains a wide range of useful pre-installed Core Modules.

You will also find a long list of optional 3rd Party Modules created by Joomla! developers in the Joomla! Extensions Directory.

 

Getting started with Modules

 

Make Joomla! CMS Security YOUR #1 Priority

joomla support cheshire manchester merseyside north west ukWe offer Joomla! coaching, help and support to businesses and organisations across Cheshire, Manchester, Merseyside, North West England & the UK.

Learn how to manage Joomla! website security.

 


How to create a Module

Here we show you how to create a NEW Module.

Whatever type of Module you want to create, the process is almost identical. 

Example: Create a MENU Module

Why DUPLICATING MODULES makes sense

The Look & Feel of a MODULE is determined by the STYLE SETS assigned to it.

Assigning STYLE SETS can be confusing, and therefore time-consuming.

When you duplicate a MODULE you will not need to think about assigning a STYLE SET to it.

Reason: the duplicated Module will inherit the settings of the original.

This is why we include lots of exemplar MODULES in a WYNCHCO website design.

 


How to assign a Module to a Position

In other words, control WHERE it is displayed.

Published MODULES will not be visible in your website until they have been ASSIGNED to a POSITION.

In a WYNCHCO website design, the Position to which a Module is assigned will also determine WHEN it is visible, depending upon:

  • the device and
  • screen size

used by the visitor.

The Position to which a Module has been assigned will determine whether it is visible on:

  • PCs & Tablets (landscape) only, 
  • Phones & Tablets (portrait) only, or
  • ALL devices regardless of screen size.

Example: Assign a Custom Module to a Position

The process is the same regardless of module type.

In this example we refer to assigning a Custom Module.

Position Maps

The POSITION MAPS which apply to WYNCHCO Template Designs can be viewed in our separate article.

Read more: Template Position Maps.

Create new Positions

There are two ways in which POSITIONS can be created:

  1. by editing the Template, and
  2. by using the LOADPOSITION Command.

We recommend using the LOADPOSITION Command if you want to have more control over where content is displayed within your website.

Read more: How to use the LOADPOSITION Command.

 

Preview Positions

We show how to preview Positions via the Templates screen of your website's dashboard in our separate article.

Read more: How to preview Positions.

Work smarter NOT harder!

joomla support cheshire manchester merseyside north west ukWe coach, help and support managers of businesses and organisations across Cheshire, Manchester, Merseyside, North West England and the UK.

Learn how to manage a Joomla! website.


How to assign a Module to a Menu Link

In other words, control WHEN it is displayed.

The process is the same regardless of module type.

In this example we refer to assigning a Custom Module.

Example: Assign a Custom Module to a Position

 


Control Module display by Device & Screen Size

WYNCHCO website designs incorporate STYLE SETS which determine by default how your website, its

  • LAYOUT and
  • CONTENT

is presented in response to the:

  • DEVICE, and
  • SCREEN SIZE

used by visitors to view your website.

 

MODULE Style Sets

MODULE Style Sets enable you to control when any one MODULE is displayed.

For example, display a Module:

  • only on PCs, or
  • on all devices except Phones.

Separate control of any one Module in this way requires the assignment of a STYLE SET to it.

Control when MODULES are displayed by device & screen size

Learn how to use MODULE Style Sets to determine when any one Module will be displayed in response to the device and screen size used by the website visitor.

Read more: Working with MODULE Style Sets.

 

DUPLICATE Modules

Daunted at the prospect of assigning a Style Set?

No worries.

WYNCHCO website designs include exemplar content, including MODULES & BOXES with pre-assigned Style Sets.

Look for an existing MODULE that appears similar to one that you want to create.

Duplicate it.

You can then tweak its settings as required.

Read more: How to duplicate a MODULE.

 


The LOADPOSITON Command

How to display Modules inside Articles

The image shown here illustrates a MODULE being displayed inside an ARTICLE using a Custom Position.

loadposition 3

This is achieved using the LOADPOSITION Command.

The Joomla! CMS enables you to create CUSTOM Positions in addition to the ones included with your website's Template.

The CUSTOM Positions may be created inside Articles and Category introductions.

And therefore presented in the Main Body of your website i.e. between the LEFT and RIGHT sidebars.

For more information about Template Positions and POSITION MAPS, visit the link below.

Read more: Position Maps.

Two alternative methods

The LOADPOSITION Command is one of two alternative ways of presenting MODULES inside ARTICLES using Custom Positions.

We focus on it here because it is the method we prefer to use.

LOADPOSITION Syntax

The Loadposition Command syntax we use to insert the above MODULE inside this ARTICLE looks like this:

loadposition-command

In this example, the word EXAMPLE  is the name of the CUSTOM POSITION.

If you prefer to use the Loadmodule Command then simply interchange loadmodule for loadposition in the above syntax.

 

The LOADPOSITION Plugin

The Content - Load Position Plugin must be enabled for you to be able to use either Command.

This plugin is enabled by default in a WYNCHCO website design - see image below.

plugin content loadmodule

How to use LOADPOSITION Command

"To insert a module inside an article, use the  command, as follows:

  1. Create a module and set its position to any value that doesn't conflict with an existing template position. You can type in the position value instead of selecting it from the drop-down list. For example, use the position myposition.
  2. Assign the module to the Menu Items that contain the articles that you want the module to show in. You can also just assign the module to all Menu Items.
  3. Edit the articles where you want this module to appear and insert the text  in the article at the place where you want the module."

Source: docs.joomla.org.

EXAMPLES

1) Display a Module inside an ARTICLE

Follow the steps below to use the LOADPOSITION Command to publish a Module inside an Article.

2) Display a Syndication Feeds Module inside a Category Introduction

We wanted to display a SYNDICATION FEED button at the top of our JOOMLERS.UK NEWS blog.

The LOADPOSITION Command made this possible.

Read more: Syndication Feeds Module.

 

Work smarter NOT harder!

joomla support cheshire manchester merseyside north west ukWe coach, help and support managers of businesses and organisations across Cheshire, Manchester, Merseyside, North West England and the UK.

Learn how to manage a Joomla! website.