Layout Builder: Need ID or Class for different Layout Builder

Created on 9 May 2023, over 1 year ago
Updated 25 March 2024, 9 months ago

If we have more than 1 Layout Builder pages then we can not determine each layout builder page, current solution is add class to each Section.

For example, to identify that this page is home-1, we need to add to each Section:

<div class="layout row layout-builder__layout home-1">
........
<div class="layout row layout-builder__layout home-1">
........

Better if Layout Builder has feature to add ID or Class name.

Feature request
Status

Closed: won't fix

Version

11.0 🔥

Component
Layout builder 

Last updated 4 days ago

Created by

🇮🇩Indonesia drupalnesia

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.

  • Issue created by @drupalnesia
  • Status changed to Postponed: needs info over 1 year ago
  • 🇳🇿New Zealand danielveza Brisbane, AU

    Thanks for raising an issue!

    Can you outline the requirements for this? Are you wanting to style LB for a certain page/bundle in a different manner? I'm not quite sure what you mean by more than one Layout Builder page.

    If you want to style a particular page differently, maybe a better option would be to add a class like node-{id} or node-{bundle} higher up the tree? Then you could target that in your CSS to style layout builder differently for particular situations.

  • Status changed to Closed: won't fix 9 months ago
  • 🇳🇿New Zealand danielveza Brisbane, AU

    There has been no further updates to this and it's been marked as postponed for 10 months, so I'm now marking this as closed.

Production build 0.71.5 2024