Related Content by Label

Labels gives you the ability to display, in a module, a list of related content when you are on a page that is labeled.  You can include one or more different types of content such as other Articles, or Web Links, or both.  This module will only display if it finds content matching the labels of the active item displayed on the page.

To display a module listing related content, add a new module.  Select Labels - Related Content from the list of modules.  The result will be similar to the following screenshot.

Screenshot

In this example, the active content item is a Joomla Article and it has been labeled with Helicopters and Civillian Aircraft.  The module has been configure to only display other Joomla Articles.  Those being displayed are also labeled with either Helicopters and/or Civilian Aircraft.

Module Options

This module has the following options available:

  • Active Content Type - Select one or more content types if you want to filter the types of content displayed in the module list.  Selecting none will display related content of all types.
  • Content Limit - The maximum number of content items to display in module list.

For assistance with creating and maintaining Joomla modules, see the official Joomla documentation:

Customization

This page may be customized using the Joomla layout override system.  You need to be able to create new files and edit them on your web hosting site using FTP or other tools that are available to you (contact your web host if you need more information).

All file paths are relative to the directory in which Joomla is installed.  When looking a files you need to create, it is assumed that you will create the necessary folders if they don't already exist in each case.  The directory default_template refers to the template that is set as the default for your site.  Please replace this name with the actual name of the template directory.

To create the layout override for this page, find the file:

/modules/mod_labels_related_content/tmpl/default.php

Copy this to:

/templates/default_template/html/mod_labels_related_content/default.php

Make the desired adjustments to the source code to the new file you created and then save it.  Your changes should be reflected when you refresh the appropriate page.

For more information on layout overrides, see http://www.theartofjoomla.com/topics/layout-overrides.html