WT Multicategories - multicategories Joomla plugin

Downloads 3098 Hits 2363 CTR 131% Plg Free

The Joomla plugin allows you to add articles or contacts more then one category (multi-category functionality). The additional category ID is taken from the user's articles or contacts field.

WT Multicategories - multicategories Joomla plugin

Description

This plugin adds the ability to specify more than one category for Joomla articles or contacts. To do this, create a custom field in which the ID of the additional category will be specified. In the plugin settings, you need to specify which field will be used as the data source. Articles and contacts from additional categories will be added to the general list and will be displayed among the articles/contacts of the main category. 

In terms of meaning, this resembles the functionality of tags. But the data for the tags is stored in a separate database table, and additional layout redefinitions need to be made for them (if necessary) in the template. Using the Joomla multicategories plugin, you can avoid additional work. 

For the convenience of specifying additional Joomla categories, you can use the WT Category custom field plugin.

For developers

This plugin overrides Joomla core models:

  • Joomla\Component\Content\Site\Model\ArticlesModel - articles list model
  • Joomla\Component\Contact\Site\Model\CategoryModel - contacts list model

In both cases, the getListQuery() method is changed. The JOIN is added to $query.

Update from v.1.1.0. CLI rebuild command

If you update from v.1.1.0, existing articles and contacts are not rebuilt automatically. Use the CLI command to regenerate the mapping table for already saved items:

/path/to/php /path/to/joomla/cli/joomla.php wtmulticategories:rebuild-map

Joomla

Extension type:
Plugin
Folder:
System
Joomla version:
5.2.3, 6.0.3

What's new

Addition

Separate table of links

The plugin now stores links to additional categories in a separate table #__wtmulticategories_map and no longer reads them directly from the field values in each frontend query.
Addition

Automatic synchronization

The mapping is automatically reassembled when materials and contacts are saved and cleared when they are deleted.
Change

Updated query logic

The category lists for com_content and com_contact now work via a map table and subcategories are handled more reliably.
Note

Update from v.1.1.0.

Existing articles and contacts are not automatically reassembled after the update. To fill in the mapping table for previously saved items, use the CLI command, for example: /path/to/php /path/to/joomla/cli/joomla.php wtmulticategories:rebuild-map

Related extensions

WebTolk Joomla Extensions

103 Extensions
12 Categories
528 Versions released
689066 Downloads