Move custom block types admin link to admin/structure

Created on 24 July 2018, almost 6 years ago
Updated 2 April 2023, about 1 year ago

Problem/Motivation

This issue is the first step in wider move 🌱 [meta] Reorganize Block items in the administration menu Active , which was discussed and agreed as part of #3316853: Drupal Usability Meeting 2022-10-28 β†’ .

When the comment, node and media modules are enabled, the following admin links are easily accessible at /admin/structure:

  • Comment types (/admin/structure/comment)
  • Content types (/admin/structure/types)
  • Media types (/admin/structure/media)

However, for the new user, it is not immediately obvious that in order to add/edit a Block type you have to:

  • Click on Block layout (/admin/structure/block)
  • Click the Custom block library tab (/admin/structure/block/block-content)
  • Click the Block types link (/admin/structure/block/block-content/types)

Proposed resolution

Move the "Block types" page from /admin/structure/block/block-content/types to /admin/structure/block-content. Update the child pages (add, edit, delete, etc.) to match.

That page used to be a second-level tab on /admin/structure/block/block-content, and used the same page title, "Custom block library". Make it is a separate page, and change the title to "Custom block types".

Add a "Block types" link to the top level of the Structure menu to align it with other core modules that provide bundles.

Update implementations of hook_help() and Help Topics to reflect these changes. Remove the help text from /admin/structure/block-content for consistency with other entity types. (See Comments #89, #90, and #96.)

Update automated tests.

Remaining tasks

User interface changes

Before patch:

After patch:

Before the patch, there are two second-level tabs on the Custom block library:

After the patch, both second-level tabs are gone:

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Fixed

Version

10.1 ✨

Component
Block contentΒ  β†’

Last updated 4 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Chris Matthews

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

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.

Production build 0.69.0 2024