New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mixedfield: a datagrid field / widget for Plone 6 #493
Conversation
@ksuess I pushed these days an small but (I think) important micro-feature: so now we will be able to do:
then in the config:
This is important so we do not override field "ids" (which is a kid of a workaround for fields that do not have the ability to state its widget, or we are not able to infer a proper one), but assigning a proper widget. |
From plone.schema = 1.3.0 |
plone.restapi supporting this: https://pypi.org/project/plone.restapi 7.3.0 |
@ksuess It would be great if we could have some narrative docs about this in Volto docs as well! "How to use Volto widgets in DX content types". What do you think? Also, preparing this: So we will have the full story in Volto core now. :) |
@sneridagh, great that you instantaneous could take the time to enhance the JSONField / datagrid topic. This should be documented also in Volto official documentation, yes. I would love to contribute, but please give me some days, I'm working on 17 construction sites. |
@ksuess well, not instantaneous, it's been in the back of my head since long. The current shape of Plone widget serialisation is quite a mess, the use cases and implementations seems to be infinite, I sweat blood back in the day when I wrote the Widget extensibility story. Coincidentally, we had that same requirement in one of our projects, in fact, we did it so far using your approach! So I spent some time investigating if we could have a better story and came up with this. Thanks for taking time investigating this subject and for writing this for the training. |
I am struggling with the first sentence. Feedback is welcome. The mixedfield empowers your user to create a list of arrays of mixed value types. And of course the complete text is open for feedback. Thanks in advance. |
Looks awesome! My 5 cents on the sentence, but no special strong opinion on it: Not very inspired this evening either 😅 |
…ct-widget