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

Relation field with list widget #473

Closed
afunnydev opened this issue Jul 4, 2017 · 2 comments
Closed

Relation field with list widget #473

afunnydev opened this issue Jul 4, 2017 · 2 comments

Comments

@afunnydev
Copy link

afunnydev commented Jul 4, 2017

- Do you want to request a feature or report a bug?
Feature
- What is the current behavior?
The relation widget can look for fields in collection.

- What is the wanted behavior?
It would be nice if it could also look into the "subfields" of a list field in a collection.
For example, I have a collection named "catalog", which contain a list field named "product", and this field as 3 fields: id, name and author. It would be awesome to be able to be able to use id, name and author in searchFields or valueField to retrieve the "subfields" of this list field.

@stale
Copy link

stale bot commented Oct 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Oct 29, 2019
@barthc
Copy link
Contributor

barthc commented May 13, 2020

This is now supported, you can do:
searchFields: ['list.0.title'] and
valueField: '{{fields.list[0].title}}'

We still need to document though. I also think we should make the access path more consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants