I created a custom field that I wanted to add as a field in the config.xml file in the root folder of my com_custom.
So, I added a property addfieldpath="/administrator/components/com_custom/Field".
Going to Options, I see the field is being rendered by using the default layout which is Text. And I knew that my custom field is not being loaded is because anything I do in the method getInput() does not do anything including die().
Is is possible to use a custom field in the config.xml by the way?
My custom field should be rendered.
No custom field is being rendered.
If it should work, what should be the proper way to adding a field path to the fieldset in config.xml?
Labels |
Added:
?
|
Title |
|
Category | ⇒ | com_fields |
Status | New | ⇒ | Discussion |
Labels |
Added:
J4 Issue
|
Nevermind, I figured it out. J4.0 is loading custom fields in config.xml just fine. It just need documentation :) and going back to my question on unknown field:
I think it should not load field type text when it cannot load the field class being called. IMO, it would be best for developers to debug if FormHelper throw an exception when field class does not exists (line 203-206 and 218-221).
Closed. Feel free to submit the documentation to the docs site - it's a wiki and/or submit a pr to add the esception
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-07-23 18:40:13 |
Closed_By | ⇒ | brianteeman |
I'm not sure if
addfieldpath
is supposed to be broken but 4.0 usesaddfieldprefix
:addfieldprefix="Joomla\Component\Custom\Administrator\Field"
.