-
-
Notifications
You must be signed in to change notification settings - Fork 186
Description
Description:
If a toggle field is included as a column in a list of pages in table layout the preview of the field behaves buggy/irritating:
A) Example A
Blueprint:
example_a:
label: Table
type: pages
layout: table
columns:
toggle:
label: Toggle Field Table Preview
Screenshot of the resulting table:
Expected behavior / Problem:
With that preview given (especially as the UI feels fully functional) I'd expect the toggle value to get saved whenever I use a toggle in the table – only, it doesn't!
More Context:
Looks like this preview was originally implementend for the structure field and works there. (Haven't tested that actually)
B) Example B
In the forum I ran across the idea to use type: text for the preview of a toggle field in table layout, but that doesn't result in a satisfying experience either:
Blueprint:
example_b:
label: Table
type: pages
layout: table
columns:
toggle:
label: Toggle Field Table Preview
type: text
Screenshot of the resulting table:
Expected behavior / Problem:
If changing the preview of a toggle field to text in a table column is actually possible, I'd expect to see the toggle text values I defined in my blueprint (Ja, Nein) or at least the default text values for the given language (an, aus) – but all i get is true and false.
C) Example C
Thinking about the text values of the toggle field preview a little more neither true and false nor the default text values of the given language (an and aus) do feel really convincing here – if the values can be customized in the blueprint, the only really satisfying solution for the field preview would be to have it customazible there too. If not automatically, then at least by redefining the values in the columns-settings of the table:
Blueprint:
example_c:
label: Table
type: pages
layout: table
columns:
toggle:
label: Toggle Field Table Preview
type: toggle
text:
- "Nein"
- "Ja"
Screenshot of the resulting table:
Expected behavior / Problem:
Apart from the missing saving-functionality described in example A, I'd expect to see Ja and Nein used instead of an and aus.
Setup / System
- Kirby Version: 4.3.0
- OS: macOS 10.15.7
- Browser: Firefox
- Version: 128

