Add a link to layout from pencil menus

Created on 9 February 2024, 16 days ago
Updated 16 February 2024, 9 days ago

Problem/Motivation

If I click the pencil button on the top left part of any Layout Builder block then I get a list of links including "Edit" but not including "Layout".

Steps to reproduce

Install Drupal 10.2.2 or later (in my case the language is Hebrew).

  1. Create a layout builder block.
  2. Add some content (heading, passage) to that layout builder block.
  3. Place the layout builder block in any region you choose.
  4. Mouse hover on that layout builder block in the respective region.
  5. Click the pencil icon for the shortcut admin actions on the top-left part of that layout builder block.
  6. You will find a link to "Edit" but you will not find a link to "Layout" .

Proposed resolution

Merge request link

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated 1 minute ago

Created by

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

Comments & Activities

  • Issue created by @bendqh1
  • πŸ‡ΊπŸ‡ΈUnited States cilefen
  • Status changed to Postponed: needs info 13 days ago
  • πŸ‡³πŸ‡ΏNew Zealand DanielVeza Brisbane, AU

    Thanks for raising an issue!

    Can we get some more details & steps to reproduce from a vanilla install of Drupal core? I'm not quite following what the issue is here.

  • Steps to reproduce:

    1. Install Drupal 10.2.2 or later (in my case the language is Hebrew).
    2. Create a layout builder block.
    3. Add some content (heading, passage) to that layout builder block.
    4. Place the layout builder block in any region you choose.
    5. Mouse hover on that layout builder block in the respective region.
    6. Click the pencil icon for the shortcut admin actions on the top-left part of that layout builder block.
    7. You would find a link to "Edit" but you will not find a link to "Layout" .
  • Added standard IS template and updated the IS.

    @bendqh1 Can you share some screenshots? I am not able to reproduce the issue with the STR which you mentioned above.

    Thanks

  • πŸ‡³πŸ‡ΏNew Zealand DanielVeza Brisbane, AU

    @bendqh1 I'm not quite following why Layout should be there? If your example you're already in the Layout Builder screen right?

    Or in your example does the custom block also have Layout builder enabled on it? So you're expecting the contextual links on a block to be something like:

    • Configure block
    • Configure block layout
    • Move block
    • Remove block
  • I was not on the layout builder screen -- I was viewing a node which contains the layout builder block in one of its regions.

    I think that a pencil menu link to layout should be there so we won't have to click "Edit" and only then, when we are inside the edit page, be able to click "Layout".
    I think that we should be able to access the layout page from outside the block edit page.

    It's just saving one step, instead of clicking "Edit" to go to to the block edit page and there click "Layout", we could prevent that step and click "Layout" directly from the block's pencil menu.

    ---

    Translating from Hebrew to English, that's what I get now, from the block's pencil menu.

    • Configure block
    • Remove block
    • Edit
    • Translate block

    The block pencil menu I desire to have is this:

    • Configure block
    • Remove block
    • Edit
    • Translate block
    • Configure block layout
  • Status changed to Active 9 days ago
Production build https://api.contrib.social 0.61.6-2-g546bc20