Skip to main content

Create a category

FLEXIcontent uses Joomla!'s native categories and adds its own display, filter, list, RSS, notification and template settings. Categories are created from Components → FLEXIcontent → Categories. They can be nested, and an item can be assigned to a primary category plus secondary categories.

This page covers the administrator procedure. For the concept, see Categories; for every setting, see Categories — options.

:::info Source Based on FLEXIcontent 5.5 (master, commit 5bc85a46712b32fae5845a134d48083f71a55419), mainly admin/models/forms/category.xml, admin/models/category.php, admin/views/category/view.html.php, admin/views/category/tmpl/default.php, admin/controllers/category.php and admin/access.xml. :::

Before you start​

  • Opening the category form requires the component permission Manage categories (flexicontent.managecats, exposed as CanCats).
  • Creating a category also requires core.create on com_flexicontent, or on at least one category. Editing a category requires core.edit or core.edit.own on that category.
  • Decide where the category belongs in the tree. The Parent Category selector only offers categories on which you have the relevant create/edit permission.
  • Prepare the title, a short alias, the access level and the language before starting.
tip

Keep the first tree shallow. You can nest categories later, and inheritance lets child categories reuse the parameters of a parent.

FLEXIcontent categories are stored in Joomla!'s #__categories table with the extension defined by FLEXI_CAT_EXTENSION (the default component setting is com_content). Using the FLEXIcontent category manager ensures that the FLEXIcontent parameters are saved alongside the standard Joomla! category fields.

1. Open the category manager​

Go to Components → FLEXIcontent → Categories. The direct URL is:

index.php?option=com_flexicontent&view=categories

Click New. The toolbar title is New Category (FLEXI_NEW_CATEGORY).

2. Fill in the Basic tab​

The Basic tab contains the identity and availability settings.

SettingRequired / defaultNotes
Title (title)RequiredCategory name shown in lists and menus.
Alias (alias)Optional; generated from the titleUsed in SEF URLs.
Description (description)OptionalShown in the category view when the display parameters enable it.
Parent Category (parent_id)Joomla! root by defaultChoose the parent in the tree. The current category and its descendants cannot be selected as their own parent.
Published (published)11 = published, 0 = unpublished, 2 = archived, -2 = trashed.
Access (access)Public (1)Joomla! view level allowed to see the category.
Language (language)All (*)Assign a content language, or keep All for a multilingual site using associations.
Category notes (note)OptionalInternal note displayed in the backend category manager.
Image / Image alt (image, image_alt)OptionalImage and alternative text used by the category layout.

The Path, created/modified information and hits are read-only. After saving, the toolbar also offers a Preview button.

3. Save the category​

The toolbar buttons are:

ButtonUse
Add / Apply & ReloadSave and reload the form. For a new category, the button is labelled Add (FLEXI_ADD).
Apply (fast save)Available for an existing category; saves without a full reload.
SaveSave and return to the category manager.
Save & NewSave, then open a blank category.
Save as CopyAvailable for an existing category; useful to duplicate a structure.
PreviewOpen the frontend category link in a new window (existing categories only).
Cancel / CloseLeave the form.

A successful save shows Category saved.

4. Configure the display tabs​

The Display section contains the settings that make FLEXIcontent categories different from native Joomla! categories.

TabWhat to configure
Publishing, MetaPublishing data and the meta description / meta keywords.
AssociationsMultilingual category associations, when associations are enabled.
Category display headerPrint, e-mail, feed and CSV buttons, the Add new item button, icon style and button placement.
Search & filter formThe filters offered above the item list.
LayoutCategory layout (clayout), optional mobile layout (clayout_mobile), layout switcher, allowed/displayed layouts and layout-specific parameters.
Items listSorting, pagination, columns and which fields are used in the list.
RSS feedsFeed settings for this category.
Parameters handlingInheritance source and one-time parameter copy.
NotificationsNotification settings; category-specific recipients require Allow category specific to be enabled in the component configuration.
PermissionsCategory ACL: create, edit, change state, delete and CSV export.

The template structure defines the category view; template positions decide where its blocks appear. The exhaustive option tables are on the Categories — options page.

5. Understand parameter inheritance​

A value that is neither empty nor Use Global overrides the inherited value. For the category view, the override order is:

Component → Inherited category → Category → Author → Menu

The Inherit parameters from (inheritcid) setting accepts:

ValueMeaning
Empty (Use Global)Use the component setting.
0 (Component only)Use component parameters only.
-1 (Parent categories (multi-level))Inherit from the parent tree, up to the first parent that does not inherit.
A category IDInherit from that specific category. This is single-level and does not cascade further.

For inheritance to work, leave the child category's own parameters empty or set them to Use Global. When a specific layout is selected, its layout parameters are also part of the inherited set.

Copy all parameters from (copycid) is different from inheritance: on the next Save or Apply & Reload, it replaces this category's parameters with a snapshot of the source category's parameters, then the selector is cleared. It happens only once.

6. Use the new category​

  1. Open the content type that authors will use and allow this category in its Authoring settings. See Create a content type.
  2. Create an item and select the new category as its primary category; add secondary categories if needed.
  3. Create a menu item pointing to a FLEXIcontent category view or multi-category view, and choose the category and layout to display.
  4. Open the frontend page and check the header, filters, item list and layout.

A menu item can override category settings for its own view. This is why the same category can look different in two places on the site.

caution

Changing the parent of a category changes its position in the nested tree. Check permissions and existing menu links before moving a category that already contains items.

Troubleshooting​

ProblemLikely cause
Cannot open the category formflexicontent.managecats is denied.
Cannot create a category under a parentcore.create is denied on that parent, or the parent cannot be used because it is below the current category.
Category is missing in the item formCategory unpublished, access level too high, or not allowed by the content type's Authoring settings.
Parameters do not applyThey are empty or Use Global, so an inherited value wins. Check the override order above.
Wrong layout on the frontendclayout is empty/inherited, or the menu item overrides the category layout.
Copy parameters had no effectSelect the source category and then click Save or Apply & Reload; the choice is cleared after one save.
Raw FLEXI_... strings in the formA language key is missing or cached language files are stale; clear the Joomla cache.

Official references​