Hello!
I have 2 collections, one of them is a list widget and the other is a ‘dropdown’ - basically a relation widget that is intended to let the user multiselect values defined in the list widget.
Here are the collections:
First collection, where I have a list widget to define blog tags:
- label: “Blog pages”
name: “blog”
description: >
Here you can edit the content of the blog listing pages (but not the blog posts themselves).
label_singular: “Blog Page”
folder: “content/pages/blog”
create: true
slug: “{{locale}}”
identifier_field: locale
fields:- label: “Blog Tags”
name: “blogTags”
identifier_field: ‘blogTags’
widget: list
required: false
field: { label: Tag, name: tag, widget: string }
Second collection, which takes all the values from the list widget and displays them in a dropdown:
- label: “Blog Tags”
- label: “ Blog posts” # Used in the UI
name: “blogpost” # Used in routes, ie.: /admin/collections/:slug/edit
label_singular: “blog post”
description: >
Here you can add and edit blog posts.
folder: “content/blogpost”
create: true
slug: “{{locale}}-{{year}}-{{month}}-{{day}}-{{slug}}”
summary: ‘{{locale}} | {{year}}-{{month}}-{{day}} | by {{authorName}} | {{title}}’
sortable_fields: [‘date’, ‘title’, ‘authorName’, ‘locale’]
view_groups:- label: Country
field: locale - label: Author
field: authorName - label: Drafts
field: draft
view_filters: - label: Drafts
field: draft
pattern: true
fields: - { label: Tags,
name: tags,
widget: relation,
collection: blog,
search_fields: [ ‘blogTags’ ],
value_field: ‘blogTags..tag’,
display_fields: [ 'blogTags..tag’ ],
multiple: true,
}
I attached a ss with the current relation widget:
- label: Country
What am I doing wrong?
Any recommendation is welcomed!
Thank you!
PS:
“gatsby-plugin-netlify”: “^5.0.1”,
“gatsby-plugin-netlify-cms”: “^6.11.0”,
“netlify-cms-app”: “^2.15.66”,