Joomla organises web content by a category hierarchy. Categories are like outlines, giving structure and organisation to web content. Each article is associated with a single category or sub-category. Menu elements then leverage categories to easily create lists of articles, blogs, and more. This tutorial describes how to create a category with two sub-categories, then organise both an existing article and some new ones within that structure.

Prerequisites

Steps

Create Categories

  1. Log in to Joomla backend and navigate to the Home Dashboard.
  2. In the Administrator Menu, click Content > Categories.
  3. Click New. Result: A new-category form appears.
    • Title: Company


    New category form with Title Company
    The new-category form filled in for Company
  4. Click Save & Close. Result: The categories list returns with Company added.
  5. Add a sub-category. New.
    • Title: Team
    • Parent: Company
  6. Click Save & New. Result: The category is saved, and a fresh new-category form appears.
    • Title: Locations
    • Parent: Company


    New category form with Title Locations and Parent Company selected from the dropdown
    Setting the Parent field to Company for the Locations sub-category
  7. Save & Close. Result: The categories list returns with Team and Locations added as sub-categories of Company.

Assign an Article to a Category

Categories are just as useful for organising articles you've already written as they are for new ones. Here we'll move the Company Overview article from 2.1 into the Company category.

  1. In the Administrator Menu, click Content > Articles.
  2. Click Company Overview to open it for editing.
  3. Set the Category field to Company.

    Company Overview edit form with the Category field set to Company
    Assigning Company Overview to the Company category
  4. Save & Close. Result: Company Overview now appears in the Company category.

Add Articles to the Sub-categories

An empty sub-category doesn't show you much. Let's put one article in each so there's something to see.

  1. Click New. Result: A new-article form appears.
    • Title: Meet the Team
    • Category: Team
    • Article Text: Our team brings together experienced professionals from across the industry, united by a shared commitment to quality.
  2. Save & New.
    • Title: Our Locations
    • Category: Locations
    • Article Text: We operate offices in multiple cities, each staffed by local experts ready to help.
  3. Save & Close.

    Categories list showing Company with Team and Locations nested underneath, each with one published article
    Company, Team, and Locations, each now holding one article

We now have a small but real structure: the Company category holds Company Overview, and its two sub-categories each hold an article of their own. In 2.3 Category Menu Item, we'll create menu items that put this structure to work, so visitors can browse it on the frontend.

Concepts

Articles are organised by categories in Joomla, giving structure to your website, making them easier to find and assisting in navigation.

Sub-categories may have sub-categories.

An article can be assigned to a category at any time, whether when it's first created or afterward by editing it.