Not working with individual content items

Created on 16 May 2024, 8 months ago
Updated 21 May 2024, 8 months ago

Hi everyone,

I've recently started using the "Layout Builder Component Attributes" module in my Drupal 10 site, which also uses a Bootstrap 5 sub-theme. While the module works great for managing attributes on standard layout builder pages, I noticed that it doesn't seem to support managing attributes when editing the layout of individual content items.

Here's what I've done so far:

Installed and enabled the "Layout Builder Component Attributes" module.
Verified that the module works for standard layout builder pages.
Cleared the cache multiple times.
Checked permissions to ensure that the appropriate roles have access to manage attributes.

However, the "Manage Attributes" option doesn't appear when I edit the layout of individual content items.

Questions:

Is there a known limitation with the "Layout Builder Component Attributes" module when it comes to individual content items?
Has anyone found a workaround or patch that enables this functionality?
Would implementing custom code be the best approach to extend this functionality to individual content items?

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @eit2103
  • πŸ‡ΊπŸ‡ΈUnited States Chris Burge

    Can you help me understand what you mean by "standard layout builder pages" and by editing "the layout of individual content items"? A screenshot of the latter might be helpful.

  • Let me explain the issue using screenshots. In the "How It Works" section, which is a static block, the "Manage Attributes" link appears.
    However, in the "Latest Posts" section, which is created through Views, the "Manage Attributes" link is missing.

  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    Struggling to recreate this.

    1. Drupal 10.2.6
    2. Latest version of this module
    3. Enable this module, views and layout_builder
    4. Add a new content type
    5. Configure to use layout builder
    6. Add a new view, with a block, can be anything but I used a simple view that references basic page content types
    7. Add a couple of new basic page nodes
    8. Add a new node from the type in step 4, save
    9. Go to layout
    10. Add a block
    11. Select the view block from step 6
    12. Attempt to configure attributes

    Expected: Manage attributes is in the contextual links
    Actual: Manage attributes is in the contextual links

    Am I missing a setup step to reproduce?

  • πŸ‡ΊπŸ‡ΈUnited States Chris Burge

    I'm wondering if this issue might be the same as #3193067: Manage attributes link not displaying for existing blocks β†’ . @eit2103, can you try the same steps in a fresh browser session (e.g. incognito mode)?

  • I tried though incognito windows, cleared cache, tried different browsers, nothing work. Then I deleted all the blocks and recreated them as described in that post, and it worked! I'm not sure why this resolved the issue, especially since it seems this problem emerged a long time ago.

  • πŸ‡ΊπŸ‡ΈUnited States Chris Burge

    It sounds like the behavior only presented on existing blocks, which would be the referenced issue; however, the fact that clearing cache and trying a different browser didn't work isn't consistent with prior reports. This module uses core APIs to render the links, so, if there is an issue, it would most probably be a core issue.

Production build 0.71.5 2024