Use weight to sort the layout selection

Created on 15 October 2019, over 5 years ago
Updated 25 October 2023, over 1 year ago

Would be cool if we can sort the layouts.
A possibility would be to use weight: xx for that.

e.g. in the xx.layouts.yml you could set a weight and this would be the sorting indicator.

layout_onecol:
  label: 'One column'
  path: layouts/onecol
  template: layout--onecol
  category: 'Columns: 1'
  default_region: content
  weight: -99
  icon_map:
    - [content]
  regions:
    content:
      label: Content

Core issue: Layout selection weight sorting Needs work
But we can already add the support in layout_paragraphs, so it will work, once it's included.

We need to sort the layouts here with the value from the .layouts.yml , assuming 0 as fallback if the value is not set.

Feature request
Status

Postponed

Version

2.0

Component

Code

Created by

🇨🇭Switzerland saschaeggi Zurich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024