Use field_group Pattern inside an other field_group Pattern

Created on 21 November 2024, 6 months ago

Problem/Motivation

Steps to reproduce

I have a Pattern accordion which is composed by

  • title
  • items
    • content

The item.0.content can be

  • a field
  • a classic field_group (exemple "HTML element")
  • a field_group using Pattern

At this moment only Drupal fields can be assigned to Pattern fields

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France Julien Tekrane

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

Comments & Activities

  • Issue created by @Julien Tekrane
  • 🇫🇷France duaelfr Montpellier, France

    Hi @julien tekrane!
    I'm using this patch on my projects if it can help you fix that issue.
    I hope to get some free time soon to give some love to this module so this kind of patch is not needed anymore.

  • 🇫🇷France Julien Tekrane

    MERCI @duaelfr

    Exactly what I needed.

    Your patch just needs a little change in ui_patterns module to allow to have no fields (in my case, as direct children, there is 0 field only 1 field_group).
    I will provide it.

    Again THANK YOU. I see I was in the right direction but not so far. I will remove my fork

  • 🇫🇷France duaelfr Montpellier, France

    Here are the patches I use. I don't know if it covers your use case but it's worth a try!

            "drupal/ui_patterns": {
                "Support extrafield": "https://github.com/nuvoleweb/ui_patterns/pull/282.patch?20211019",
                "
                
                  
                  Support modules that use field_layout data (eg. field_group).
                    Needs work
                  
                 Support modules that use field_layout data (eg. field_group). ": "etc/patches/upstream/ui_patterns/13.patch",
                "Support fieldgroups nesting": "https://github.com/nuvoleweb/ui_patterns/pull/284.patch?20211019",
                "Allow to use field_group label in patterns": "https://github.com/nuvoleweb/ui_patterns/commit/c09132b8f615ad05cccc201597f74c3801e9c6d8.patch?20211123",
                "Prevent empty groups to be displayed.": "https://github.com/nuvoleweb/ui_patterns/commit/3bb7917e803a23e6d23496f183e4ca92bb4fb6d5.patch?20211130"
            },
  • 🇫🇷France duaelfr Montpellier, France

    This should be natively fixed in 2.0.0-alpha2

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed about 1 month ago
  • 🇫🇷France duaelfr Montpellier, France
Production build 0.71.5 2024