How to successfuly export custom inline blocks

Created on 13 December 2023, 7 months ago
Updated 16 December 2023, 7 months ago

Problem/Motivation

hi
i have been trying with different methods to export custom inline block with different scenario (default_content_deploy, structure_sync etc. modules) without success

I have also unsuccessfully tried those modules with && without below patches

Drupal core

"Export block UUID with custom Layout Builder blocks": " https://www.drupal.org/files/issues/2023-08-16/3180702-d10-43.patch β†’ "

Default content deploy

"Fix layout builder references to inline blocks":" https://www.drupal.org/files/issues/2023-07-25/default_content_deploy-la... β†’ "

Can i have helps/ suggestions on how to

Thanks

πŸ’¬ Support request
Status

Active

Version

10.0

Component

Miscellaneous

Created by

πŸ‡§πŸ‡―Benin delacosta456

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

Comments & Activities

  • Issue created by @delacosta456
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

    Thanks, for reporting!!

    Try if that plays well with ✨ Add a Normalizer and Denormalizer to support Layout Builder Needs work

  • πŸ‡§πŸ‡―Benin delacosta456

    hi
    thanks for replying

    what could be the simple and best patch combination because i am for have been trying a lot of things i am a little bit confused.

    • Should i Simple go with the default_content module + the patch you suggested

      without

      any other extra export module ? For info please know that immediately after reading your reply i tried the latest patch #53 ✨ Add a Normalizer and Denormalizer to support Layout Builder Needs work that applied correctly but followed by an error message saying that #37 β†’ could not be applied. This sound logic but make my Gitlab CI/CD stucks. i tried the "patches-ignore" method recommended i here in Varbase Documentation but still getting the error

    • Should i use the the patch together with those one i mentioned in my first post

    Thanks

  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

    It is alrady in Varbase Core
    https://git.drupalcode.org/project/varbase_core/-/blob/9.1.x/composer.js...
    Alrady using that with for the default content of the homepage.
    Two options:
    1. Change the patch to add the UUID for inline blocks for the normalizer and denormalizer in ✨ Add a Normalizer and Denormalizer to support Layout Builder Needs work
    2. Have other modules or patches to add the UUID in the sync serliazed data.

  • πŸ‡§πŸ‡―Benin delacosta456

    hi
    finally i was able to solve this with default_content module 2.0.x-dev in combination with patches below

            "patches": {
                "drupal/default_content": {
                    "1 - Add a Normalizer and Denormalizer to support Layout Builder - https://www.drupal.org/project/default_content/issues/3160146#comment-14814050": "https://www.drupal.org/files/issues/2022-12-06/default_content-3160146-53.patch",
                    "2 - Do not reimport existing entities": "https://www.drupal.org/files/issues/2022-07-29/default_content-fix-uuid-duplicate-entry-2698425.patch",
                    "3 - Update inline block usage on import - https://www.drupal.org/project/default_content/issues/3359137#comment-15042582": "https://www.drupal.org/files/issues/2023-05-09/default_content-3359137-3.patch"
                }
            },
            "patches-ignore": {
                "drupal/varbase_core": {
                    "drupal/default_content": {
                        "Issue #3160146: Add Layout Builder Normalizer and Denormalize": "https://www.drupal.org/files/issues/2021-04-07/3160146-37.patch"
                    }
                }
            }
        }
    
    }

    Please note that to be able to successfully export node related inline block_content (with dcer) and get i correctly imported when enabling module all above patches( 3160146-53.patch replacing 3160146-37.patch) where needed.

    Now am still looking for how to figure "updating changed made without the need to delete node and re-import"

    Thanks

Production build 0.69.0 2024