Problem/Motivation

In the linked meta issue the block items are getting reorganized in the administration menu. At first the moving and relabeling was initially done in #2987964: Move custom block types admin link to admin/structure and #2862564: Move Custom block library to Content. But there was a consensus to separate the relocation and the renaming of things.

Problems with Custom Block Types (https://www.drupal.org/project/drupal/issues/2987964#comment-14764972)

  • In #2987964: Move custom block types admin link to admin/structure Custom block types got moved to the same level like Content types, Comment types, and Media types. Due to the prepended word custom and the alphabetical sorting you have Block layout on top of the list then four other menu items and then Custom block types.
  • If a person is scanning for blocks in the administration menu the word custom has to be processed first which decreases the readability.
  • One could question him or herself if there are Custom block types are there also regular block types?

Problems with Custom block library (https://drupal.slack.com/archives/C1AFW2ZPD/p1666965008595329)

  • the term "custom block" means different things to different people, to some people it means creating a custom block in code, while to others it means adding a block containing custom content to be placed on the site;
  • Since the introduction of Layout Builder in Core, the use-case for custom blocks has changed, they are no longer just for adding into a region but can be used as part of content on any given page.
  • The module itself is named content_blocks.

For the reference the issue was discussed and agreed on in the linked issue on Slack by @aaronmchale, @benjifisher, @rkoller, and @smustgrave

Steps to reproduce

Proposed resolution

  • Even though the issue status is already set to postponed [P-4] move the changes for renaming Custom block type to Block type already done in #2987964: Move custom block types admin link to admin/structure over to this issue
  • Change the route from /admin/content/block-content to /admin/content/block
  • On /admin/content/block (currently /admin/content/block-content) change the page title from Custom block library to Content blocks
  • On /admin/content/block (currently /admin/content/block-content) change the label of the tab from Custom blocks to Blocks
  • Change the name of the module from Custom block to Block Content

Except the first point, moving over the already made changes, wait with any further work until #2987964: Move custom block types admin link to admin/structure, #2862564: Move Custom block library to Content, and #3318112: [PP1] Move "Block layout" from Structure to Appearance land. And it might be possible that more name/labeling changes might be necessary.

Remaining tasks

  1. Review and commit

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3318549

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rkoller created an issue. See original summary.

rkoller’s picture

Issue summary: View changes
rkoller’s picture

Title: [P-4] Rename the Block terminology in the administration menu » [P-3] Rename the Block terminology in the administration menu

Updated the title prefix to P-3 - Only three steps necessary upfront instead of 4.

rkoller’s picture

I've presented the current plan for moving and untwining the block related pages in Core at the Drupal Dojo Austin to yesterdays attendees @rocketeerbkw and @arcticcheetah. The plan was as agreed in https://drupal.slack.com/archives/C1AFW2ZPD/p1666965008595329 to get some general feedback about the plan by a diverse number of users.

In addition to the general thumbs up for the different steps there were the following comments specific to the micro copy in the Custom block library screenshot:

  • is it common to use a differing page title and second level nav label? with content blocks in the page title it seems busier and redundant. why cant it be blocks in the block title as well? you can't generate regular blocks in the ui. the only place you need to distinguish between blocks and content blocks is the block layout page. therefore it would make sense to name everything in /admin/content/block just blocks
  • add content block” as the button label is ok. but the text, when no content blocks are added yet, should also be updated.:

no content blocks available. add a content block -> no blocks available. add a content block

  • from their perspective it should be content blocks everywhere or consistently block instead with the only exception for the add button and the add link.
  • renaming the module to block content to be inline with machine name and get a closer proximity to the block module makes sense for the module
rkoller’s picture

I've presented the current plan for moving and untwining the block related pages in Core at the weekly Lean Coffee Table at the Drupal User group in Munich to @drubb, @franz-m, @it-cru, @jurgenhaas, @martin-mayer as well as to the Fox Valley Computer Professionals attendees Anthony E. Scandora, @bsnodgrass, Sally Gradle, @TBone242.

The page title on /admin/content/block caused completely opposite reactions between meetups. the consensus in one meetup was that content block doesn't throw anyone off at all. while in the other meetup everyone was uncertain about the terminology content block. as long as everyone has a difficult time differentiating the different types of blocks as described in https://www.drupal.org/project/drupal/issues/2862564#comment-14789469 it doesn't make much sense renaming the page title to content block. everyone was leaning towards renaming the page title to plain Blocks. with regard to the suggestion that the custom block library should show each and every block naming the page title just Blocks would even make more sense.

In the context of /admin/content/ and terminology it was also added that the terms node and content are very difficult to convey to less tech savvy project managers.

in regards of the renaming of the custom block module to block content to get block and block content close to each other for easier comprehension and association it was also noted that there is a similar case with custom menu links and menu ui. out of the scope for this issue but i don't wanted to let it slip through.

And there was a consensus in both meetups that the title Appearance has to be at least revisited and discussed if it is still the best descriptive fit. Someone noted that for example the german translation uses for Appearance the term Design instead.

smustgrave made their first commit to this issue’s fork.

smustgrave’s picture

This is still blocked but wanted to get what I could ready for when #2862564: Move Custom block library to Content lands

Replaced all occurrences of custom block type with block type
Replaced all admin/content/block-content routes with admin/content/block
Changed the name of the module.

Questions
Still need an update hook for the block view but should the title of the page match the tab?
Should we replace Custom blocks with blocks or content blocks?

smustgrave’s picture

Think the move block library is close to landing. Can we hammer out details of this one?

larowlan’s picture

Title: [P-3] Rename the Block terminology in the administration menu » [P-1] Rename the Block terminology in the administration menu
mstrelan’s picture

Wondering if this is actually blocked by #3318112: [PP1] Move "Block layout" from Structure to Appearance or if we can unblock this? This is primarily about renaming "custom blocks" which is not so relevant for block layout.

mstrelan’s picture

I've merged 10.1.x in to the MR and manually resolved all conflicts. We'll need to deprecate and redirect the old path /admin/content/block-content like we did for /admin/structure/block/block-content.

mstrelan’s picture

Should we re-title this issue to expand the scope outside of just the administration menu? I think we need to replace "custom block" everywhere it appears, in help topics, in code, etc. It's everywhere.

larowlan’s picture

As /admin/content/block-content isn't in a tagged release, I don't think we'll have to worry

larowlan’s picture

Comment #14 was in relation to #12

Re #13 I think that's a good idea, but let's see what @rkoller and the UX team think?

smustgrave’s picture

I vote changing everywhere. Could add to the change record in the meta that we changed it.

For new people may be confusing to see two titles referring to blocks.

For existing people the change record should cover that.

aaronmchale’s picture

Title: [P-1] Rename the Block terminology in the administration menu » [PP-1] Rename the Block terminology in the administration menu

This issue would cross both block_content.module and block.module. I suspect we need to separate this into two issues, one for each sub-system.

rkoller’s picture

in regards of #13 a +1 for changing everywhere. but for the renaming it would be good to have everything in place and untwined, meaning after "moving the block layout into appearance" also landed (ref #11). i think keeping this issue PP-1 might be the safer call?

and i had a conversation with @smustgrave already a few weeks back in the context of this issue in the #block-content channel (see https://drupal.slack.com/archives/C04AWT6FNEA/p1672344443803469 - i just forgot to post it in here). one suggestion that spun off in the thread was to change the title Block layout to Block Placement. Block placement is slightly longer but from my point of view a lot clearer.
the term layout in block layout one might associate with i am able to decide the actual layout of a block and its design. and if you take a look at the help text on the block layout page "Block placement is specific to each theme on your site. Changes will not be saved until you click Save blocks at the bottom of the page." the term block placement and what the user is actually able to do on the page is directly used at the beginning of the sentence. On that page the user actually decides were to place a block in the different regions. it is describing the actual activity way better than "layout" does. might be worth a thought? what do others think?

mstrelan’s picture

I agree that "block placement" is clearer.

I don't really follow the argument for blocking it on the move. Is there an example of a string usage that would be confusing if this got in first?

aaronmchale’s picture

I don't really follow the argument for blocking it on the move. Is there an example of a string usage that would be confusing if this got in first?

I think it's just from a logistical perspective, when we were originally planning out all of the issues and the meta, it made sense to postpone the naming ones on the moving issues because it helps to focus the limited resource we have, rather than trying to do all of the issues at once and stretching the effort thereby meaning none actually get done. Also, because the MRs for the moving issues and the naming issues would touch the same code, trying to do them at the same time could get confusing and mean they need to be kept in step with each other.

mstrelan’s picture

Fair points. It seems to me this one is ready to go whereas the other one is still pending a decision on where to move it. IMHO this needs to go in before 10.1 so it should take priority. We shouldn't release it with the new "Custom blocks" link in Content only to rename that it in 10.2.

aaronmchale’s picture

Title: [PP-1] Rename the Block terminology in the administration menu » Rename Custom Block terminology in the admin UI
Status: Postponed » Active

I reread the summary again, and actually there's nothing in the issue summary that blocks this issue on #3318112: [PP1] Move "Block layout" from Structure to Appearance. All of the required changes to the Block Content module have been done. That issue is specific to the Block Layout page, which is provided by a different module. Yes you can access Content Blocks from there, but all the proposed changes in the summary can go ahead with or without that issue being committed.

Also re-titling to be clearer, as I think it's important we recognise that content_block and block are two separate modules, each with their own maintainers.

IMHO this needs to go in before 10.1 so it should take priority. We shouldn't release it with the new "Custom blocks" link in Content only to rename that it in 10.2.

Also, 100% agree with @mstrelan in comment #21, especially since we literally just changed Custom Block Library path to /admin/content/block-content in 10.1.x, and setup the redirect, if we change it again in 10.2.x and add another redirect and BC layer that's just going to get confusing for users. In addition to changing the title of the page and local task, so yes we really should get this done in 10.1.x.

rkoller’s picture

There is one detail relevant to this issue that came up in the aftermath of the feedback sessions i've had at the weekly lean coffee table at the Drupal user group Munich the Tuesday before the last #3318112-25: [PP1] Move "Block layout" from Structure to Appearance via a slack conversation with @jurgenhaas. We've also touched the matter during the feedback session but Jürgen phrased and argued the problem more thoroughly in the follow-up:

What is currently called Block layout is being called Layout in the mockups @larowlan provided in #3318112-22: [PP1] Move "Block layout" from Structure to Appearance and #3318112-23: [PP1] Move "Block layout" from Structure to Appearance. The additional alternatives that were voiced and discussed during the coffee table were Block placement and Placement. But @jurgenhaas suggests to go with Regions as the label for this page for following reasons instead:

  • Block should not be in the name. It is ambiguous as blocks are placed in regions as well as in layout builder.
  • Layout should not be in the name. It implies that layout could be changed and adjust whereas it is fixed by the theme's geometry, i.e. the regions.
  • Placement doesn't catch it either, as placing blocks can be in various places, i.e. in regions as well as in layout builder.

The label should be a clear indicator, such as layout builder is labeled "Layout Builder" regions should be named "Regions".

I have to admit i like the idea of the term regions in combination with approach 2 (#3318112-23: [PP1] Move "Block layout" from Structure to Appearance)for theme cards. i always disliked the term block layout and considered it imprecise/unclear and therefore was an advocate for block placement or placement - that term is used in help texts as well as when people are discussing block layouts in conversations. But Jürgen has a point. Even though going with just regions it lacks somehow the detail what the user is able to do in/with regions?

smustgrave’s picture

Think the block layout changes should be moved to a separate ticket. We already moved block types and block library so 100% should tackle those renaming. But block layout hasn't been moved yet and even though it would be nice for 10.1 it's not top of the list of changes needed.

aaronmchale’s picture

As I said in comment #22, I think changes to Block Layout are out of scope for this issue because this issue is specifically for the Block Content module and Block Layout is provided by a separate Core module.

To quote myself from #3318112-27: [PP1] Move "Block layout" from Structure to Appearance:

As a final thought, I wonder if the Layout local task tab should be called "Block layout", rather than just "Layout", my thinking here is inspired by something that was said at the recent usability meeting about how we could better guide users to the new locations of pages after they are moved. Keeping the page/tab title as "Block layout" helps with that because it provides consistency, in that the user is looking for the block layout page, so by keeping the name of the tab consistent with what the menu link under Structure is currently named, we make it easier for users to find it.

I think I was one of the people who originally proposed naming it simply "Layout", because in the future Layout Builder could replace the current region/block layout interface; But if/when that happens it might then make sense to shorten the name of the tab to "Layout", until then I think "Block layout" is better.

So I think Block Layout should not be renamed, yet.

smustgrave’s picture

Status: Active » Needs review

This is ready for review now

Question if we will need an update path for the view

larowlan’s picture

Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Drupal 10.1 target, +Needs change record updates
StatusFileSize
new29.6 KB
new164.38 KB
new84.84 KB

Manual testing

  1. When I visit admin/content we seem to have two local tasks - Blocks and Custom Blocks

    One of them looks to be coming from a view, the other from a list builder.
  2. The views one doesn't have a local action to add a new block
  3. The list builder one probably should be hidden when views exists, which I think means they both need the same path
  4. It occurred to me that this could have been because there's no update path, so I tried a re-install. Did that and confirmed the duplicates are gone. So we will need an update path.
  5. Confirmed the module name is updated in the help overview
  6. The help topic at http://127.0.0.1:8080/en/admin/help/topic/block.overview calls it 'Content Block module' whereas the help overview calls it 'Block Content' - I think they should use the later when referring to the module, and the former when referring to the entity. So we need to update the help topic
  7. The block category at admin/structure/block is still 'Custom' when we place a block content block, however I think we should leave that as is and address in #3153092: Set Block Category to Bundle in block_content module
  8. Tagging as Drupal 10.1 target because the update hook scenario is made much harder if we have to do it again in 10.2 (After alreading moving it once in 10.1) - discussed with @xjm
  9. We will need to update the change record for #1975064: Add more granular block content permissions, as the permission names have changed, tagging for that
  10. We need to update the permission titles too

Here's the remaining places I found custom block or custom_block in core

Key

✅ Leave as is
❌ We should fix

  • ❌core/profiles/demo_umami/themes/umami/umami.theme: // Add a class indicating the custom block bundle.
  • ❌core/profiles/demo_umami/themes/umami/umami.theme: // Block suggestions for custom block bundles.
  • ✅core/profiles/demo_umami/config/install/user.role.author.yml: - 'create and edit custom blocks'
  • ✅core/profiles/demo_umami/config/install/user.role.editor.yml: - 'create and edit custom blocks'
  • ❌core/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php: ->setDescription(t('The time that
    the custom block was last edited.'))
  • ❌core/themes/claro/templates/block-content-add-list.html.twig: * Claro's theme implementation to display a list of
    custom block types.
  • ❌core/themes/claro/templates/block-content-add-list.html.twig: * - description: A description of this custom block
    type.
  • ❌core/themes/stable9/templates/admin/block-content-add-list.html.twig: * Theme override to present a list of custom
    block types.
  • ❌core/themes/stable9/templates/admin/block-content-add-list.html.twig: * - types: A collection of all the available
    custom block types.
  • ❌core/themes/stable9/templates/admin/block-content-add-list.html.twig: * - description: A description of this custom
    block type.
  • ✅core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php: 'd6_custom_block',
  • ✅core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php: 'd6_custom_block',
  • ✅core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php: 'd7_custom_block',
  • ✅core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php: 'd7_custom_block',
  • ✅core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php: // The d7_custom_block migration should have
    migrated a block containing a
  • ✅core/modules/block/migrations/d7_block.yml:# This configuration migration depends on the d7_custom_block content
    migration.
  • ✅core/modules/block/migrations/d7_block.yml: - d7_custom_block
  • ✅core/modules/block/migrations/d6_block.yml:# This configuration migration depends on the d6_custom_block content
    migration.
  • ✅core/modules/block/migrations/d6_block.yml: - d6_custom_block
  • ✅core/modules/block/src/Plugin/migrate/process/BlockPluginId.php: $lookup_result =
    $this->migrateLookup->lookup(['d6_custom_block', 'd7_custom_block'], [$delta]);
  • ✅core/modules/forum/tests/fixtures/drupal7.php: 'page_arguments' =>
    'a:3:{i:0;s:25:"block_custom_block_delete";i:1;i:4;i:2;i:5;}',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php: 'create and edit custom
    blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: $permissions[] = 'create and edit
    custom blocks';
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: * Tests 'create and edit custom
    blocks' permission to edit an existing block.
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: $permissions[] = 'create and edit
    custom blocks';
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php: 'create and edit custom blocks',
  • ✅core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php: 'create and edit custom
    blocks',
  • ✅core/modules/layout_builder/layout_builder.module: if ($account->hasPermission('create and edit custom blocks'))
    {
  • ✅core/modules/layout_builder/src/Plugin/Block/InlineBlock.php: '#access' => $this->currentUser->hasPermission('create
    and edit custom blocks'),
  • ✅core/modules/layout_builder/src/Controller/ChooseBlockController.php: '#access' =>
    $this->currentUser->hasPermission('create and edit custom blocks'),
  • ✅core/modules/layout_builder/layout_builder.permissions.yml:create and edit custom blocks:
  • ✅core/modules/block_content/block_content.post_update.php: * Moves the custom block library to Content.
  • ✅core/modules/block_content/block_content.post_update.php:function
    block_content_post_update_move_custom_block_library() {
  • ❌core/modules/block_content/tests/src/Functional/BlockContentListViewsTest.php: * Tests the custom block listing
    page.
  • ❌core/modules/block_content/tests/src/Functional/BlockContentListTest.php: * Tests the custom block listing page with
    different permissions.
  • ✅core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php: * @see
    block_content_post_update_move_custom_block_library()
  • ✅core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php: * @see
    block_content_post_update_move_custom_block_library()
  • ✅core/modules/block_content/tests/src/Kernel/Migrate/d6/MigrateCustomBlockContentTranslationTest.php:
    'd6_custom_block',
  • ✅core/modules/block_content/tests/src/Kernel/Migrate/d6/MigrateCustomBlockContentTranslationTest.php:
    'd6_custom_block_translation',
  • ✅core/modules/block_content/tests/src/Kernel/Migrate/d6/MigrateBlockContentTest.php: 'd6_custom_block',
  • ✅core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockContentTranslationTest.php:
    'd7_custom_block',
  • ✅core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockContentTranslationTest.php:
    'd7_custom_block_translation',
  • ✅core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockTest.php: 'd7_custom_block',
  • ❌core/modules/block_content/tests/src/Kernel/BlockContentPermissionsTest.php: 'A basic block
    type
    : Edit custom block',
  • ❌core/modules/block_content/tests/src/Kernel/BlockContentPermissionsTest.php: 'A square block
    type
    : Edit custom block',
  • ❌core/modules/block_content/block_content.permissions.yml: description: 'Get an overview of all custom blocks.'
  • ✅core/modules/block_content/migrations/d7_custom_block.yml:id: d7_custom_block
  • ✅core/modules/block_content/migrations/d6_custom_block.yml:id: d6_custom_block
  • ✅core/modules/block_content/src/Plugin/migrate/source/d6/BoxTranslation.php: const CUSTOM_BLOCK_TABLE = 'boxes';
  • ✅core/modules/block_content/src/Plugin/migrate/source/d7/BlockCustomTranslation.php: const CUSTOM_BLOCK_TABLE =
    'block_custom';
  • ✅core/modules/block_content/src/Plugin/migrate/source/d7/BlockCustomTranslation.php: $query =
    $this->select(static::CUSTOM_BLOCK_TABLE, 'b')
  • ❌core/modules/block_content/src/BlockContentPermissions.php: 'title' => $this->t('%type_name: Create new custom
    block', $type_params),
  • ❌core/modules/block_content/src/BlockContentPermissions.php: 'title' => $this->t('%type_name: Edit custom block',
    $type_params),
  • ❌core/modules/block_content/src/BlockContentPermissions.php: 'title' => $this->t('%type_name: Delete custom block',
    $type_params),
  • ❌core/modules/block_content/src/BlockContentPermissions.php: 'title' => $this->t('%type_name: View custom block
    history pages', $type_params),
  • ❌core/modules/block_content/src/BlockContentPermissions.php: 'title' => $this->t('%type_name: Revert custom block
    revisions', $type_params),
  • ❌core/modules/block_content/src/BlockContentPermissions.php: 'title' => $this->t('%type_name: Delete custom block
    revisions', $type_params),
  • ✅core/modules/content_translation/migrations/d6_custom_block_translation.yml:id: d6_custom_block_translation
  • ✅core/modules/content_translation/migrations/d6_custom_block_translation.yml: migration: d6_custom_block
  • ✅core/modules/content_translation/migrations/d6_custom_block_translation.yml: - d6_custom_block
  • ✅core/modules/content_translation/migrations/d7_custom_block_translation.yml:id: d7_custom_block_translation
  • ✅core/modules/content_translation/migrations/d7_custom_block_translation.yml: migration: d7_custom_block
  • ✅core/modules/content_translation/migrations/d7_custom_block_translation.yml: - d7_custom_block
  • ✅core/modules/content_moderation/tests/src/Functional/LayoutBuilderContentModerationIntegrationTest.php: 'create and
    edit custom blocks',
  • ✅core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php: 'd6_custom_block',
  • ✅core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php: 'd7_custom_block',

I think we should add a follow up to change the layout builder permission from 'create and edit custom blocks' to 'create and edit inline content blocks' - I think it's out of scope here

Huge work @smustgrave 🙌

This is our last must-have for D10.1 for block content, shaping up nicely

larowlan’s picture

smustgrave’s picture

Status: Needs work » Needs review

Everything should be addressed and I updated change record.

rkoller’s picture

Status: Needs review » Needs work

Applied the latest patch to a fresh install of 10.1.x previous the site install without any other patches applied. and i've installed the help topics module. a few additional observations.

1. on admin/content/block i like the change on the tab from content block to just block. it is just a bit inconsistent that the content block section is the only under admin/content which has differing h1 and tab title. but i think it should be ok. aside that without any content block created There are no content blocks available.Add a content block. is missing a space after the first period.

2. on admin/help/topic/block.overview it is not clear what

Managing blocks overview
The Block module allows you to place blocks in regions of your installed themes, and configure block settings. The Block Content module allows you to manage block types and content blocks. See the related topics listed below for specific tasks.

is referring to. i suppose the blocks overview is referring to the block layout page? Should that maybe clarified and directly named aka renaming blocks overview to block layout?

and the link blocks chapter of the user guide (https://www.drupal.org/docs/user_guide/en/blocks-chapter.html) is probably needing a follow up adjusting the terminology there as well?

3. on /admin/help/block the link online documentation for the block module (https://www.drupal.org/docs/core-modules-and-themes/core-modules/block-m...) needs a follow up as well to adjust the terminology.

4. on admin/help/block_contentthe link online documentation for the block content module (https://www.drupal.org/documentation/modules/block_content) needs a follow up as well to adjust the terminology.

5. on admin/people/permissions one permission title Access the Content block library page refers to the no longer existing title content block library. To be in line with the titles for the node permissions and the recommendation in #1975064-215: Add more granular block content permissions the string should be changed to Access the Content blocks overview page.

6. and in regards of

I think we should add a follow up to change the layout builder permission from 'create and edit custom blocks' to 'create and edit inline content blocks' - I think it's out of scope here

in #29i would suggest to do that alongside #3318558: Adjust the block terminology in Layout Builder to align with block and block_content changes that both are in line.

smustgrave’s picture

Assigned: Unassigned » smustgrave

Thanks I’ll work on this.

If I don’t get to it in 3 days anyone else can jump on and remove my name

smustgrave’s picture

Status: Needs work » Needs review

Actually wasn't much to change.

#32
1 = being tackled in a separate ticket
2 = Changed to Overview for managing blocks
3 = Not sure where to place a follow up for https://www.drupal.org/docs/core-modules-and-themes/core-modules/block-m...
4 = same for https://www.drupal.org/documentation/modules/block_content
5 = updated
6 = sounds like a plan

rkoller’s picture

uh that was fast thanks!

#34.1 do you have the link to the issue that is tackled in?

#34.2 hm also with "overview for managing blocks" i wouldn't be exactly sure to which page that part in the help topics section refers to. is it /admin/content/block or /admin/appearance/block. from a users perspective it would be helpful to use clear terminology. managing blocks is just a top level task in the help topics module. but for a user it would be helpful to know to which exact function or page that section is refering to. (and as i said even personally i am uncertain what it exactly refers to still)

#34.3 & #34.4 i am also not exactly sure. i just wanted to point out those shouldn't be a blocker for this issue. but both pages definitely need an update. probably best would be to wait until the move block layout issue is in and then create documentation issues or directly edit both pages . the first link uses custom block 8 times and also has a few paths like Administer > Structure > Block Layout that have to be updated. the second link uses custom block/custom block types 13 times. there is also the question when those changes should go live? with the release of 10.1?

larowlan’s picture

Re #34.1 the issue is #3095893: Remove duplicate "add block" link from block content type view's "Results not found" message
Re #34.2 I agree, we should expand and fix that here - note also #3352550: Hook help for block content module is out of date after new permissions
Re #34.3 and #34.4 these can be edited post commit, tagged as such - I've also applied for smustgrave and I to be a maintainer of those pages

@smustgrave can you confirm you've resolved the ❌ We should fix items from #29?

We have 12 days until 10.1 alpha, this is the last piece we need for internal consistency with the other changes (and to avoid needing 2 BC layers for route name changes)

aaronmchale’s picture

This is looking really good, thanks for all of the great work so far everyone!

Added a couple of comments to the merge request, one minor and one potential big one.

smustgrave’s picture

Left some comments and yes @larowlan believe everything has been addressed.

acbramley’s picture

Reviewed all issue comments and remaining threads in the MR. It looks like the only outstanding issue is the description of the menu item for the view.

It's currently reading as Create and edit content block content., with a proposed change of Create and edit content blocks which I agree reads slightly better.

Otherwise amazing work as always :)

smustgrave’s picture

Just pushed up that change.

acbramley’s picture

Status: Needs review » Reviewed & tested by the community

It looks like we're all happy with the wording. Marking as RTBC, great work :)

aaronmchale’s picture

Status: Reviewed & tested by the community » Needs review

The discussion around whether to stay with Block types or go with Block content types has not yet concluded, and whichever we choose will result in updates to the merge request.

smustgrave’s picture

It’s already been changed to block content types

aaronmchale’s picture

Usability review

We discussed this issue at #3352906: Drupal Usability Meeting 2023-04-14, that issue will have a link to the recording.

For the record the participants were: myself, @benjifisher, @rkoller, @BlackBamboo and @paulocs

The focus of the discussion was mostly centred around which term we should be using: Block types, Content block types or Block content types.

The recommendation is to stay with the shorter "block types". It was noted that for some users the words "content" and "types" seen together is strongly associated with content types, and so "content block types" or "block content types" could result in confusion, whereas simply "block types" ensures there is clear distinction between those and "content types".

We also noted that because the user is used to going to structure to create content or media types, which they can then use under the content area, simply referring to content block types as "block types" is enough context: as a user I can create blocks under Content therefor I can create "block types" under Structure.

"Block types" is also the shortest of the three options, and if the context is clear we can afford shorter terminology.

The group also noted that using the term "content block" on /admin/content/block is okay, as you are in the space of creating content and quite often blocks there will have a WYSIWYG text area.

We also discussed whether there could be any confusion between content blocks and blocks created by other modules (either in code or config). We observed that in the Block Layout area, when listing or placing a block, the term "Categories" is used and not "Types" to group the blocks there, and that content blocks are all grouped by a single category. We felt this created enough of a distinction between content blocks and blocks which are provided by code and config. We did note that in the Block Layout content blocks are still categories to as "custom", the group recommended changing the "custom" category to "content block".

aaronmchale’s picture

Status: Needs review » Needs work
smustgrave’s picture

Reverted back the changes. Changed category but they will also be using the block types when #3153092: Set Block Category to Bundle in block_content module lands.

aaronmchale’s picture

@smustgrave that's a really good flag, thanks for brining up that issue. I think it would be good, giving the context, to also bring that issue to the usability group, so I'll tag it for review. Hopefully we can prioritise it fro this coming meeting.

acbramley’s picture

Status: Needs work » Reviewed & tested by the community

From what I can tell, the last piece of feedback has already been addressed in the reverts, therefore this is RTBC again.

larowlan’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work

Verified that remaining items from #29 have been addressed, removing that from remaining tasks

grep -iEr "custom( |_)block" core|grep -v node_modules|grep -vE "d6\_|d7\_"|grep -v 'create and edit custom blocks'
core/modules/forum/tests/fixtures/drupal7.php:  'page_arguments' => 'a:3:{i:0;s:25:"block_custom_block_delete";i:1;i:4;i:2;i:5;}',
core/modules/block_content/block_content.post_update.php: * Moves the custom block library to Content.
core/modules/block_content/block_content.post_update.php:function block_content_post_update_move_custom_block_library() {
core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php:   * @see block_content_post_update_move_custom_block_library()
core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php:    $this->assertSession()->pageTextContains('Custom blocks');
core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php:    $this->assertSession()->pageTextContains('Custom block library');
core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php:   * @see block_content_post_update_move_custom_block_library()
core/modules/block_content/src/Plugin/migrate/source/d6/BoxTranslation.php:  const CUSTOM_BLOCK_TABLE = 'boxes';
core/modules/block_content/src/Plugin/migrate/source/d7/BlockCustomTranslation.php:  const CUSTOM_BLOCK_TABLE = 'block_custom';
core/modules/block_content/src/Plugin/migrate/source/d7/BlockCustomTranslation.php:    $query = $this->select(static::CUSTOM_BLOCK_TABLE, 'b')
core/modules/migrate_drupal/tests/fixtures/drupal7.php:  'page_arguments' => 'a:3:{i:0;s:25:"block_custom_block_delete";i:1;i:4;i:2;i:5;}',
core/modules/tracker/tests/fixtures/drupal7.php:  'page_arguments' => 'a:3:{i:0;s:25:"block_custom_block_delete";i:1;i:4;i:2;i:5;}',

These are either migrate or update hooks, so all good.

All items resolved in the MR so removing that from IS too

Updating issue credits

larowlan’s picture

Status: Needs work » Reviewed & tested by the community

Didn't mean to change status

  • larowlan committed f06e188e on 10.1.x
    Issue #3318549 by smustgrave, mstrelan, larowlan, rkoller, AaronMcHale,...
larowlan’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Drupal 10.1 target, -Needs change record updates, -Needs documentation updates +String change in 10.1.0

Committed and pushed to 10.1.x, huge effort folks

See you in the other issues in the meta or #3352550: Hook help for block content module is out of date after new permissions

Updated change record.

We need to make documentation updates on Drupal.org, I'll go propose some now.

larowlan’s picture

Updated the two docs pages on Drupal.org

aaronmchale’s picture

Fantastic to see this get in, thanks for the great work everyone 🎉

Status: Fixed » Closed (fixed)

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

benjifisher’s picture

I am belatedly adding credit for the participants in the 2023-04-14 usability meeting. (See Comment #44.)