Currently, each component can use com_categories once.
If the com_categories is similar to the com_fields, by defining different texts (CONTEXT), it is possible to use the com_categories multiple times in the same component. Now the com_fields has such a capability.
By changing one component, more scenarios can be covered.
For example Students MVC needs category, and Schools MVC needs category too.
context=com_example.students and context=com_example.schools
I've done this example for com_fields by adding numbers and was able to save a lot of coding. It is really similar to this scenario for com_categories, so that different scenarios can be covered with little coding.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
Feature
|
The parameter has a different name, but you can actually use the same structure right now. If you want, you can use &extension=com_content.fields to have an additional category tree. I'm doubting that we will rename the parameter, due to legacy reasons.
Please explain the old reasons. Maybe we can find a solution for it. I know that this can be implemented, but in my opinion, the code itself should be self-explanatory and not require trial and error by the developer.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-11 14:52:20 |
Closed_By | ⇒ | rdeutz |
Currently, each component can use com_categories once.
The first statement in you description is wrong. You can you use as much categories trees as you want, you only have to add something to the extension parameter like
extension=com_demo.tree1
extension=com_demo.tree2
extension=com_demo.tree3
extension=com_demo.tree4
index.php?option=com_categories&view=categories&extension=com_content
*** change to ***
index.php?option=com_categories&view=categories&context=com_content.article
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43213.