Restrict module functionality to desired block types

Created on 25 November 2023, 7 months ago
Updated 26 November 2023, 7 months ago

Problem/Motivation

When this module is turned on it overrides the block titles of all block types on the site. On the project page a sample of a 'Super Block' is shown which is the block type where this functionality is added. But when I installed the module and created a block type to add the functionality, I found that that all the other block types on the site had their titles overridden with an 'Administrative label' which is not printed on the page meaning that there is no way to show block titles on the site unless through this module. This affects blocks both added on Layout Builder or added on the Block configuration page.

Steps to reproduce

Enable the module, add or edit a content block and check to show the block title, save and see the title won't show up being that this module had overridden and hidden it.

Proposed resolution

Allow the module functionality to be enabled per block type so that when not enabled it does not affect other block types.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡¬Nigeria chike Nigeria

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

Comments & Activities

  • Issue created by @chike
  • Status changed to Needs work 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States Luke.Leber Pennsylvania

    This is a very logical feature.

    In order to land this feature, we'll need:

    1. A decision: are blocks are opt-in or opt-out by default?
    2. If required, based on previous decision, an upgrade path to ensure existing sites have no functional changes. This will likely be in the form of a post-update hook.
    3. Test coverage.

    Setting to NW on #2

Production build 0.69.0 2024