Make fences available for all block types in layout builder

Created on 2 March 2020, about 5 years ago
Updated 11 April 2025, 14 days ago

While fences for blocks show up on eg. views blocks it doesn't appear if a custom block is created withing layout builder (block type "inline block", bundle "basic").

Blocked by & POSTPONED ON:

Core issues:

Workaround:

Until the core bug is fixed, this module works as an alternative as it doesn't make use of third_party_settings:
https://www.drupal.org/project/layout_builder_styles

This shouldn't be a blocker for Integrate fences_block as submodule Closed: won't fix .

Feature request
Status

Postponed

Version

2.0

Component

Code

Created by

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.

  • 🇦🇲Armenia murz Yerevan, Armenia

    More than 3 years already passed, but still no progress in the mentioned core issues :( But Layout Builder becomes more popular, and we suffer from this missing feature in Fences!

    Yes, we can use a working solution using other modules ( https://www.drupal.org/project/layout_builder_styles or https://www.drupal.org/project/layout_builder_component_attributes ), but they provide different UI to manage classes, that confuses content editors a lot!

    And one more UX problem - we can't reuse the Fences pre-defined presets, if we use another module for Layout Builder blocks!

    So, instead of waiting for a miracle from Core, let's implement a workaround, like other modules already implemented? With a bold caveat that this is a temorary workaround, and probably no migration paths will be available when (and if ;-) ) the core issue is fixed.

    And returning to the issues:
    - Support third party settings for components within a section Needs work - it's RTBC, so we can rely on it, but implement a workaround that will be easier to rework reusing the core issue.
    - It's very difficult to alter forms of inline (content blocks) placed via Layout Builder Needs work - seems no progress, so let's implement an ugly and slow way to alter the forms, like in other modules, and a caveat that this works only for the specific cases.

    I believe this way will be much better than just wait for the miracle next 3 years and more, and implement this features manually in the custom code for each your project!

  • I agree with you, we don't need or should wait for the core problem to be fixed, because that could be in 1 week or 10 years.

    BUT, we don't use Layout Builder anymore. So we're happy to look at a solution, but we won't be coding it ourselves any time soon.

  • 🇩🇪Germany Anybody Porta Westfalica

    @murz: Totally agree with you and @thomas.frobieter. Feel free to create a MR. If it's a workaround that introduces smells, let's please put this into a separate submodule, so it's clearly encapsulated and can be removed easily one day, if Core will fix it.
    Thanks!

Production build 0.71.5 2024