Control panel fails to show singular taxonomy term field in list #6942
-
I have a collection with a taxonomy term field using
The control panel's list view seems to expect a list of terms and not a single one. The edit view will however save a string instead of a list if What am I doing wrong? Could this be a bug? Expand for config excerpts
title: Partners
template: partners/show
layout: layout
mount: 1392
taxonomies:
- partner_categories
revisions: false
route: '{mount}/{slug}'
sort_dir: asc
date_behavior:
past: public
future: private
...
- handle: partner_categories
field:
type: terms
taxonomies:
- partner_categories
display: Category
mode: select
instructions_position: above
listable: hidden
visibility: visible
always_save: false
max_items: 1
create: false
sections:
main:
display: Main
fields:
-
handle: title
field:
type: text
required: true
validate:
- required
-
handle: content
field:
restrict: false
automatic_line_breaks: true
automatic_links: false
escape_markup: false
smartypants: false
antlers: false
type: markdown
icon: markdown
listable: hidden
instructions_position: above
visibility: visible
always_save: false
sidebar:
display: Sidebar
fields:
-
handle: slug
field:
type: slug
required: true
validate:
- required
title: Partner Categories
Entry (using Eloquent driver, thus JSON and not YAML): {
"partner_categories": "foo",
...
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
What version of Statamic? |
Beta Was this translation helpful? Give feedback.
-
You mentioned that you're using the Eloquent driver. Looks like this PR is fixing your issue. |
Beta Was this translation helpful? Give feedback.
You mentioned that you're using the Eloquent driver. Looks like this PR is fixing your issue.
statamic/eloquent-driver#85