Unable to add new field type for custom fields

NikitOS

Well-known member
Affected version
2.*
Hello

It is currently not possible to add a new field type for custom fields. More precisely, it is possible, but only by extending all repositories, entities, and any other classes that extend abstract classes containing field type data, such as XF\Entity\AbstractField and XF\Repository\AbstractField.
A rather strange and not flexible implementation is obtained, developers simply cannot add their own types for additional fields so that it works everywhere. It would be nice to add events through which it would be possible to add custom types of custom fields.
However, the entire system of custom fields needs rework, IMHO.
 
Back
Top Bottom