Custom fields code events

Lukas W.

Well-known member
Would be nice to have a couple of code events to make creating new custom field types possible.

To name a couple of methods that needed to be hookable:
  • XF\Repository\AbstractField::getFieldTypes
  • XF\Repository\AbstractField::getMatchTypePhrases
  • XF\Admin\Controller\AbstractField::fieldSaveProcess
And any other that may be required to add new custom field types.

Currently, the only way to add new types is to find each instance of each repository and controller and extend them manually, which not only is pretty tedious, but also doesn't work for 3rd party content types that support custom fields out of the box.

Edit: This would also include turning the field_type field on the field entity into a string, ideally.
 
Last edited:
Upvote 17
This would be nice :)

A kinda hacky idea how to achive smth. similar right now without additional code events:
 
Back
Top Bottom