Skip to content

Allows you to add articles or contacts from other categories to categories if they are specified in the custom field.

License

Notifications You must be signed in to change notification settings

WebTolk/wt-multicategories-joomla-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WT Multicategories Joomla plugin

Allows you to add articles or contacts from other categories to categories if they are specified in the custom field.

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.