User/Content fields not available in Layout Builder variant.

Created on 14 December 2020, almost 4 years ago
Updated 14 August 2024, 3 months ago

Problem/Motivation

Variant Layout Builder - No block/fields available for common context like user or node

Steps to reproduce

  • Create new page /node/{node} with a Layout Builder variant. Context automatically added (user, site, node).
  • Go to Layout and "Add section"
  • Then "Add Block". Result: No content/user fields available. Please notice those are available when creating layout from Manage Display (default LB behavior)
🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇦🇷Argentina dariogcode

Live updates comments and jobs are added and updated live.
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.

  • Hello,
    Any news about that?
    Maybe the cleanest (and complex way) would be to look for an existing node type parameter.
    This in order to avoid to add an extra dropdown list.

  • 🇩🇪Germany Anybody Porta Westfalica

    I can confirm this issue, which makes "Layout builder" variant practically useless / unusable when overriding entity paths like:
    /taxonomy/term/%term
    For that reason, I'm setting priority to major and hope it's OK.

    So could someone turn this patch into a MR to further work on this?

    Currently the following contexts are available when overriding an entity route:

    @user.current_user_context:current_user 	Aktueller Benutzer 	entity:user 	
    current_user 	Aktueller Benutzer 	entity:user 	
    language_interface 	Anzeigesprache der Website 	language

    And like this, the entity (here %term) should be generally available, similar like how it worked in Drupal 7 page_maanger.

Production build 0.71.5 2024