Open damsfx opened 9 months ago
@damsfx would you be interested in looking into refactoring the options processing in backend forms in the Winter core so that we can have a helper of some sort that can be used from anywhere in order to support all of the different ways that options can be defined (I think we're up to 6 or 7 now)?
@LukeTowers Yes, I'd like to ... but I need to know where to start and if it's within my reach.
@jaxwilko any pointers for @damsfx?
@LukeTowers @damsfx it's like 4am but from memory I think it happens here: https://github.com/wintercms/storm/blob/6855ef4280d2587367f6127a2bd56a89e727e490/src/Parse/Syntax/FieldParser.php#L416
Although that might just be for values defined in cms pages and not in yaml configs. @damsfx let me know how you get on and if you need help feel free to @ me :)
Ideally, I think a trait that can process them would be beneficial, then we can use it wherever it is required :)
Allow options for block config to be AJAX-derived options.
Supplying the dropdown options in the helper class :
or returns different options depending on the field name