Contextual links for inline blocks from layout builder

Created on 26 April 2024, 6 months ago
Updated 22 July 2024, 3 months ago

Not sure is this a bug as I tested it on different versions and it seems it's the way it works at the moment...
Problem:
I don't have contextual links for editing inline blocks on the page (created from layout builder).
Steps to reproduce:
1. Install clean version of drupal 10.x
2. Enable Layout builder and Layout discovery
3. Check "Use Layout builder" and "Allow each content item to have its layout customized" in "manage display" for Basic page content type
4. Add Basic page and create new of Basic block (in layout builder)
5. Create new custom block (Basic block) in admin/content/block and add it to layout builder
6. There are only contextual links for the block from custom block library on the page and for the one created in layout builder (inline block) are missing (attached pic).

Is there any option to have contextual links for inline blocks on the page/front?

Thanks

πŸ’¬ Support request
Status

Active

Version

10.2 ✨

Component
Layout builderΒ  β†’

Last updated about 8 hours ago

Created by

πŸ‡·πŸ‡ΈSerbia ivanilic

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

Comments & Activities

  • Issue created by @ivanilic
  • πŸ‡ΊπŸ‡¦Ukraine Panchuk Volyn, Lutsk

    I successfully reproduced it on D10.1.6.

    Contextual links work well for:
    - Blocks from core;
    - Custom blocks created not in layout;
    - View blocks;

    But, there are no contextual links only for inline blocks.

    By the way, after some digging, I've found a related/similar issue [@3020876]

  • πŸ‡·πŸ‡ΈSerbia ivanilic

    HI @Panchuk, thanks for your time spending on this.
    I noticed this issue before and applied the patch. It's not working well because if you turn on revision and save the block - contextual links are gone again. I raise it on that issue too.
    It's strange to me that this isn't fixed yet since the layout builder functionality is here for some time and I think it's relatively important to have contextual links on the page for inline blocks from the site builder/editor perspective.

  • πŸ‡·πŸ‡ΈSerbia ivanilic

    I'm having some issues while trying to reproduce it on D11 (they are already raised and concern php 8.3, nothing to do with this issue).
    Anyway, I managed to add block in D11 and seems like it's fixed there. I have contextual links on the page for inline blocks and with even with revisions, after saving the block, I was able to see contextual links.

  • First commit to issue fork.
Production build 0.71.5 2024