- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.7k
[com_fields] Support to include component specific form files #15915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| I like this proposal, I'm only not so sure about the location where the file is placed. | 
| When you have many entities, then the forms folder get cluttered with too many files. Thats why I recommend to put it into a subfolder. | 
| I have tested this item ✅ successfully on bf40057 Can do the same also for Contact fields (Mail) ? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15915. | 
| @AlexRed I can do it, when this one got merged. It will be then only one file to add. | 
| I have tested this item ✅ successfully on bf40057 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15915. | 
| RTC after two successful tests. | 
…#15915) * Support to include component specific form files * Hide the display param for users
Summary of Changes
Com_categories has a nice little feature which allows the component developer to place a form file on
/administrator/components/com_foo/models/forms/category.xmlwhich get loaded when editing a category.This pr introduces the same functionality for com_fields. If a file is found on the location
/administrator/components/com_foo/models/forms/fields/bar.xmlthen this file get loaded when the entity com_foo.bar is edited.Additionally an overwrite is added which hides the "Automatic Display" field for com_users as it is not relevant for that component.
It should fix #14377 and #15244.
Testing Instructions
Create a new User custom field.
Expected result
The "Automatic Display" field in options is not displayed.
Actual result
The "Automatic Display" field in options is displayed.
Documentation Changes Required
Would be nice to have that feature documented.