1

D8.2x - using adaptive theme.

I have successfully added new regions but have not yet been able to add as many as I need. The theme settings save, then I add another region and they do not.

Please see the below 2x 'flex-builder.markup.yml'. The first works - all good, settings save. The second, with one additinal region, apears in 'layout settings' but the settings will not save . I am clearing the cache each time.

Is there some limit on the number of regions I can add or something? Am I doing something wrong or missing something?

This works;

rows:
    leaderboard:                  # row key (name of the row).
  attributes:                 # attributes - set id, role, classes.
    id: leaderboard
  regions:
    leaderboard:              # region machine name.
      label: 'Leaderboard'    # region label.
      order: 1                # source order in this row.
header:
    attributes:
    role: banner
  id: masthead
regions:
  header_first:
    label: 'Header first'
    order: 1
  header_second:
    label: 'Header second'
    order: 2
navbar:
attributes:
  id: navbar
regions:
  navbar:
    label: 'Navbar'
    order: 1
messages:
attributes:
  id: messages
regions:
  messages:
    label: 'Messages'
    order: 1
highlighted:
attributes:
  id: highlighted
regions:
  highlighted:
    label: 'Highlighted'
    order: 1
title-a:
attributes:
  id: title-a
regions:
  title-a:
    label: 'Title'
    order: 1
features:
attributes:
  id: features
regions:
  features_first:
    label: 'Features first'
    order: 1
  features_second:
    label: 'Features second'
    order: 2
  features_third:
    label: 'Features third'
    order: 3
  features_fourth:
    label: 'Features fourth'
    order: 4
main:
attributes:
  id: main-content
regions:
  content:
    label: 'Main content'
    order: 1
  sidebar_first:
    label: 'Sidebar first'
    order: 2
  sidebar_second:
    label: 'Sidebar second'
    order: 3
subfeatures:
attributes:
  id: sub-features
regions:
  subfeatures_first:
    label: 'Sub-features first'
    order: 1
  subfeatures_second:
    label: 'Sub-features second'
    order: 2
  subfeatures_third:
    label: 'Sub-features third'
    order: 3
  subfeatures_fourth:
    label: 'Sub-features fourth'
    order: 4
footer:
attributes:
  role: contentinfo
  id: footer
regions:
  footer:
    label: 'Footer'
    order: 1
twin:
attributes:
  id: twin
regions:
  twin_first:
    label: 'Twin first'
    order: 1
  twin_second:
    label: 'Twin second'
    order: 2
twin2:
attributes:
  id: twin2
regions:
  twin2_first:
    label: 'Twin2 first'
    order: 1
  twin2_second:
    label: 'Twin2 second'
    order: 2

This - one additional region at the bottom - does not;

rows:
 leaderboard:                  # row key (name of the row).
  attributes:                 # attributes - set id, role, classes.
    id: leaderboard
  regions:
    leaderboard:              # region machine name.
      label: 'Leaderboard'    # region label.
      order: 1                # source order in this row.
 header:
  attributes:
    role: banner
    id: masthead
  regions:
    header_first:
      label: 'Header first'
      order: 1
    header_second:
      label: 'Header second'
      order: 2
 navbar:
  attributes:
    id: navbar
  regions:
    navbar:
      label: 'Navbar'
      order: 1
  messages:
  attributes:
    id: messages
  regions:
    messages:
      label: 'Messages'
      order: 1
highlighted:
  attributes:
    id: highlighted
  regions:
    highlighted:
      label: 'Highlighted'
      order: 1
title-a:
attributes:
  id: title-a
regions:
  title-a:
    label: 'Title'
    order: 1
features:
  attributes:
    id: features
  regions:
    features_first:
      label: 'Features first'
      order: 1
    features_second:
      label: 'Features second'
      order: 2
    features_third:
      label: 'Features third'
      order: 3
    features_fourth:
      label: 'Features fourth'
      order: 4
  main:
    attributes:
    id: main-content
  regions:
    content:
      label: 'Main content'
      order: 1
    sidebar_first:
      label: 'Sidebar first'
      order: 2
    sidebar_second:
      label: 'Sidebar second'
      order: 3
  subfeatures:
    attributes:
      id: sub-features
    regions:
      subfeatures_first:
    label: 'Sub-features first'
    order: 1
  subfeatures_second:
    label: 'Sub-features second'
    order: 2
  subfeatures_third:
    label: 'Sub-features third'
    order: 3
  subfeatures_fourth:
    label: 'Sub-features fourth'
    order: 4
footer:
  attributes:
    role: contentinfo
    id: footer
  regions:
    footer:
      label: 'Footer'
      order: 1
twin:
  attributes:
    id: twin
  regions:
    twin_first:
      label: 'Twin first'
      order: 1
    twin_second:
      label: 'Twin second'
      order: 2
twin2:
  attributes:
    id: twin2
  regions:
    twin2_first:
      label: 'Twin2 first'
      order: 1
    twin2_second:
      label: 'Twin2 second'
      order: 2
twin3:
  attributes:
    id: twin3
  regions:
    twin3_first:
      label: 'Twin3 first'
      order: 1
    twin3_second:
      label: 'Twin3 second'
      order: 2
0

Answer kindly posted by someone here;

https://www.drupal.org/node/2902246#comment-12223855

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.