Improve readibility of config form

Created on 21 September 2023, over 1 year ago
Updated 7 February 2024, 11 months ago

Problem/Motivation

For some reason the custom blocks are not shown after press Add block buttons in layout of any content type.

Steps to reproduce

  1. Create any content of any content type with layout builder enabled.
  2. Go to edit the content created in the previows step.
  3. Press the Layout button.
  4. If has not some section, then generate how many you want.
  5. Go to any section and click in the "Add block" button.
  6. You should see the custom blocks enabled but do not appear.

So you need to go to enabled the custom blocks here:
/admin/config/content/layout_builder_quick_add

There in the side for enabled block you should see all the custom blocks hence you should select the Custom blocks that you need show in the Layout of the content type. So:

  1. Go to vertical tab "Enabled blocks"
  2. Select the custom blocks the you wanna see in thee Layout of the content type
  3. Press the button Save configuration
  4. Go to vertical tab "Enabled blocks"
  5. You should see enabled the custom block selected and saved previowsly.
๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ดColombia angelgarciaco Bogotรก, Colombia

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

Comments & Activities

  • Issue created by @angelgarciaco
  • Status changed to Downport over 1 year ago
  • ๐Ÿ‡จ๐Ÿ‡ดColombia angelgarciaco Bogotรก, Colombia

    Hey guys.. I attach the patch file where the config is saved without problems, only changing the way that is used the "set" and "save" methods.

  • ๐Ÿ‡จ๐Ÿ‡ดColombia angelgarciaco Bogotรก, Colombia

    Hey guys.. I atach a new patch .. to avoid the warning message when is first time rendering the form with out data and adding the path for config form of the module. I think that is a better help if this is added.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada phjou Vancouver ๐Ÿ‡จ๐Ÿ‡ฆ ๐Ÿ‡ช๐Ÿ‡บ

    @angelgarciaco I am not able to reproduce the issue, when I save the values are actually saved.
    On the other hand I can definitely keep the $config to increase the readibility of the file.
    There is not reason to initiate to [] for enabled_blocks since it is already in the config folder.

    • phjou โ†’ committed ed60d165 on 1.0.x
      Issue #3388984 by angelgarciaco, phjou: Config settings is not being...
  • Status changed to Fixed 12 months ago
  • ๐Ÿ‡จ๐Ÿ‡ฆCanada phjou Vancouver ๐Ÿ‡จ๐Ÿ‡ฆ ๐Ÿ‡ช๐Ÿ‡บ

    Change commited, feel free to reopen this issue if you still encounter any issue on the dev branch.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024