IT in Education

Filtering for Custom Fields

joomlaExtensionsIf you use Custom Fields, you might find it useful to filter your view of articles based on Custom field values. This article describes how JFilters allows you to do this. Learn how to install Joomla extensions to get yourself started.

Visit the Joomla extensions site to review JFilters .


Installation

Visit the Bluecoder website , and click the link to download the free version of JFilters. You'll need to create a user account before downloading. There is a paid option that adds more features, but the free version is great for a basic Joomla website.

Configuration

There are three parts to the configuration, Component, Menu and Module.

Component

  1. Go to Components > JFilters.
    1. In a clean install of Joomla, you will see 10 unpublished filters.
  2. Open Tags (context Article) for editing.
    1. Display: Select the Checkboxes option from the dropdown
    2. Status: Set to Published.

If you want to filter Custom Fields, all you need to do is to create a supported Custom Field and then click the Synchronize button.

Menu

Now you can create a results page, using a Menu Item.

  1. Go to Menus > Main Menu.
  2. Click the + New button.
    1. Menu Item Type: Select JFilters > Results.
    2. Title: e.g. Filter results
    3. Select theĀ Options tab.
      1. Context: Article
      2. Preset Filters: Select options here to initialise the results page.
  3. Click Save & Close

Module

Finally we want to see the Filter module in the frontend.

  1. Go to Content > Site Modules.
  2. Click the + New button.
  3. Select a Module Type: JFilters Filters
    1. Title: e.g. Filter
    2. Results page: Select the Filter results Menu Item that you created in the previous step.
  4. Click Save & Close


Thanks for visiting,
Steven