Closed Unable to add new field type for custom fields

NikitOS

Well-known member
Licensed customer
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.
 
Automated triage: As designed

Custom field types are a fixed set by design, so adding new ones from an add-on means extending several classes. Nothing is malfunctioning, so this is better raised as a suggestion for a new extension point than as a bug.

This is an automated assessment. A member of staff may review and update it.
 
Back
Top Bottom