Event to limit types of fields in a Field Layout #11634
-
I'm building out a proof of concept for a new plugin and I would like to be able to limit the fields (or the types of fields) that the user can select. The plugin would make it possible to define custom properties on a button, and I'd like to do so using custom fields the user can create. I would however like the avoid fields like Matrix and Super Table being used here, as that's not intended use case (of either). An event that would hook into getAvailableCustomFields for example. Happy to try my hand at a PR for this is if it's something worth considering :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Just added a new |
Beta Was this translation helpful? Give feedback.
Just added a new
EVENT_DEFINE_CUSTOM_FIELDS
event for Craft 4.2! (a80dfc6)