Kirby 2.2 – the major minor release

Awesome update :heart_eyes: I was urging for the structure improvements :wink:

However, one question about blueprints: “style:table” does not work with “entry: > […]”? I would like to control the visible columns of the table-styled structure element in the panel. When having a structure element in the panel with quite some entries, the table-styled structure element entry gets reaaally long…

Edit and workaround

From looking at line 4 of the corresponding file https://github.com/getkirby/panel/blob/master/app/fields/structure/styles/table.php it doesn’t seem to be possible, right?

Workaround: I used a custom panel stylesheet (http://getkirby.com/docs/cheatsheet/options/panel.stylesheet) and hid elements via CSS:

.structure-table th:nth-child(n+3),
.structure-table td:nth-child(n+3) {
  visibility: hidden;
  width: 0;
}

.structure-table th:last-of-type,
.structure-table td:last-of-type {
  visibility: visible;
  width: 3em;
}

.structure-table td a {
  height: 2.5em;
}

Thank you very much for all your work.

1 Like