Create two categories
Parent
Parent->child
Create one field and assign it to the Parent Category
Field is only available to articles in the parent category
Field is available to articles in the parent and child category. There is no way to assign a field just to the parent category
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
Feature
|
So I just took a look at this and the "problem" is that the code is specifically written to include child categories. (does anyone know why - it's not something I see elsewhere in Joomla)
The relevant code is
joomla-cms/administrator/components/com_fields/src/Model/FieldsModel.php
Lines 231 to 246 in b2004e7
When I remove that block of code I can successfully assign a field to
The problem is that this would be a b/c break so we cant just delete the block of code and would need to place it behind a param (include/exclude children) with the default being include
and should this include/exclude child categories be per field or a global option for com_fields
thoughts?