Skip to content
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

Any kind of list or modular component nested inside the existing modular components widget #6060

Open
mcdowellalex opened this issue Dec 17, 2021 · 1 comment
Labels
area: configuration area: extensions/widgets/list type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@mcdowellalex
Copy link

mcdowellalex commented Dec 17, 2021

So having a widget that allows modular components (what we have here #1857) is really nice. But it doesn't seem all that useful to me unless I can nest another modular component block or a list widget inside of that.

As of right now, if you try and nest a list or modular components widget inside, there is no ability to "create new" data. The parameter of "create:true" doesn't seem to be working.

Ideally, it would be nice to be able to do something like this in the config.yml:

     name: contentBlocks
     widget: list
     types:
       - label: Nested Modular Component
         name: nestedModularComponent
         widget: list
         types:
           - {label: lorem, name: ipsum, widget: string}
       - label: Nested List
          name: nestedList
          widget: list
          create: true
          fields:
            - {label: lorem, name: ipsum, widget: string}```
@mcdowellalex mcdowellalex added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Dec 17, 2021
@ui-jb
Copy link

ui-jb commented Jun 21, 2024

This is still an issue, unfortunately.
I tried getting around this using a relation field, but that results in the following error:
image

EDIT:
I found a workaround! You just need to wrap your list in an object. As long as a list isn't a direct descendant of types, you can use a list 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: configuration area: extensions/widgets/list type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

3 participants