-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Map/Dictionary Widget #5489
Comments
Hi @bmackinney, thanks for sharing your use case. It does seem useful to have a dictionary widget. |
@erezrokah I'm up for it - it also looks like much of the work has already been done, by Pablo. My approach to this PR would be to:
Am I missing anything? |
Hi @bmackinney, thanks for looking into this. You approach seems 💯 However, I think might be better to clone an existing widget package instead of following this guide, as we already have the build step configured, etc. Other than that, maybe adding some tests for the new widget? |
@erezrokah is it possible for the code widget to output raw code instead of a string? I think it would be a simpler solution that will satisfy more of my needs. |
Not at the moment. Widget values are always coupled to a field name (no top level values). |
https://answers.netlify.com/t/map-dictionary-fields/5241 has problem faced and solution found.
I'm making a files collection for hugo configuration files, and to edit the taxonomies field requires users to be able to define keys and values, resulting in something like:
I originally thought the code widget would work, but it outputs only strings.
The text was updated successfully, but these errors were encountered: