-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Allow displaying a different field that the linked valueField
in Relation
widget
#591
Comments
@tomrutgers please confirm this issue is already fixed in #1303 before closing. |
Correct. You can now use |
@tomrutgers, ... I think this is what the OP means. Also discussed here: #1982 (comment) |
This issue was opened when there wasn't a |
@tomrutgers, hmm, I think #1982 covers the remaining bits pretty well, so it's fine that this one is closed. Just wanted to clarify 👍 |
Agreed 👍 |
- Do you want to request a feature or report a bug?
Feature
Needs #597 first.
- What is the current behavior?
The
Relation
widget allows linking to another collection item.The
searchFields
property defines in what item fields netlify will look for the user provided string.The
valueField
property defines what value will be stored in the relation field, thus creating a link between the current item and searched item.- Context
I created a
menus
collection that can link topages
collection items on two levels:I also created an
uuid
read-only widget that allows linking to a page by a constant unique per-item field, thus preventing the menu links to break in the case thevalueField
is set totitle
and the user changes the pagetitle
for example.- What is the expected behavior?
Add a
displayField
property that would allow displaying a different field that the linkedvalueField
.In my above example i would have
uuid
asvalueField
andtitle
asdisplayField
.The user would see the page title as menu entry, but the stored value would be the uuid.
The text was updated successfully, but these errors were encountered: