User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This improvement adds ability to get extension for categories from another field by filling attribute 'extension' of the categories field with the name of the extension type field in format 'field:fields_group_name.field_name', i.e.:
<fields name="params">
<fieldset name="basic">
<field
name="extension_type"
type="list"
label="CATEGORIES_EXTENSION_TYPE_LABEL"
description="CATEGORIES_EXTENSION_TYPE_DESC"
default="com_content"
required="true"
>
<option value="com_content">CONTENT_CATEGORIES</option>
<option value="com_contact">CONTACT_CATEGORIES</option>
</field>
<field
name="categories"
type="category"
label="CATEGORIES_LABEL"
description="CATEGORIES_DESC"
extension="field:params.extension_type"
default=""
multiple="true"
/>
</fieldset>
</fields>
This improvement is backward compatible.
/modules/mod_breadcrumbs/mod_breadcrumbs.xml
file./modules/mod_breadcrumbs/mod_breadcrumbs.xml
file with this file (removing '.txt')In the administrator panel:
P.S. You can use any module for testing instead of mod_breadcrumbs. The main is to add the fields for selecting component type and for selecting categories to its xml-file as in the given file mod_breadcrumbs.xml.txt.
There need to add the description of this feature to the article 'Category form field type' (https://docs.joomla.org/Category_form_field_type):
extension (mandatory) is the name of the extension for which the categories will be retrieved or the reference to the field for selecting extension. For example, to list content categories, use the value 'com_content', to get extension from the value of the field 'extension_type' of the field group 'params' use 'field:params.extension_type'.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Components Libraries |
Labels |
Added:
?
|
The benefit is simple. One can develop some uneversal module to display any type of categories and use parameters for selecting the component type and for selecting categories of the selected type.
Sorry I still dont get it
Category | Administration Components Libraries | ⇒ | Administration com_categories Libraries Components |
Closed due to lack of interest
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-09 13:38:15 |
Closed_By | ⇒ | brianteeman |
Maybe its just a problem with your description but I am struggling to see the benefit of this