Kirby 5 new table layout and tag switches bug?

Hi, there I’ve implemented the new nice but “slow” Table layout into my panel, and added into the layout some radio button fields like for me “Home” and “Link” ON/OFF

If I switched ON the “Home” and OFF the “Link” for example within the Table layout, the changes are not saved? Why?

Check this video:

The blueprint looks like this in the “work.yml”

          homepage:
            type: fields
            fields:
              homepage_visible: # previously 'showcase'
                label: Homepage visible
                help: Le projet est-il **visible** sur la home ?
                type: toggle
                icon: home
                width: 1/4
                default: false
                translate: false
              homepage_link: # previously 'slideshow_toggle'
                label: Homepage link
                help: Le projet est-il **cliquable** ?
                type: toggle
                icon: url
                width: 1/4
                default: false
                translate: false

and like this in the table layout yaml:

  works_all:
    label: All (table)
    icon: draft
    columns:
      - width: 1/1
        sections:
          all:
            label: Works All
            type: pages
            batch: true
            rawvalues: false
            status: all
            templates: work
            limit: 20
            layout: table
            columns:
              info: false
              client: true
              date:
                type: text
                value: '{{ page.date.toDate("Y") }}'
                width: 3/24
              # designers:
              #   type: tags
              #   width: 1/12
              # work_field: 
              #   label: Domaines
              #   type: tags
              # categories:
              #   label: Categories
              #   value: '{{ page.category_print }} {{ page.category_identity }} {{ page.category_digital }} {{ page.category_signage }} {{ page.category_image }}'
              #   type: tags
              homepage_visible:
                label: Home
                width: 2/16
                type: toggle
              homepage_link:
                label: Link
                width: 2/16
                type: toggle
              case_study_ready:
                label: Case study
                width: 2/16
                type: toggle

Many thanks

Unfortunately, toggling the toggles from the table layout does not work yet, this is a known issue.

okay, at least I know now. :sweat_smile: is it something that has been adressed in the next 5.1 update?

Yes, the toggle previews will correctly show as disabled in 5.1

EDIT: For reference fix: Disable all fields in a table layout of a models section by bastianallgeier · Pull Request #7554 · getkirby/kirby · GitHub - I expect this to still make it into 5.1

So in other terms, in 5.1, we will be able to quickly enable and disable toggle within the table layout and the changes will be reflected and saved directly? Right?

Because, right now, it’s super weird that we can toggle it ON/OFF but it isn’t saved.

No, in pages and files sections the toggles will show the value but will be disabled/not interactive to avoid this current confusion of interacting with them without an actual result.

That means it’s not possible to do that within the TableLayout? Crap, I thought it was super useful that way.

Do you plan to add the sort by column within the TableLayout in 5.1 as well?

Not in a pages or files section. That’s an existing feature request but that’s more complicated to realize than we will manage with 5.1.

It does work in the table of the structure field.

And no, that’s another existing feature request but not planned for 5.1.

1 Like