Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29760

Blocks views configuration keys lost during merge

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: High
    • Resolution: Obsolete
    • Affects Version/s: 2.3.1
    • Fix Version/s: None
    • Component/s: Landing Page Manager
    • Labels:
      None

      Description

      When inspecting the configuration for ezplatform_page_fieldtype with php bin/console debug:config ezplatform_page_fieldtype on the EE demo, some views are listed with numerical keys:

      ezplatform_page_fieldtype:
          blocks:
              embed:
                  configuration_template: '@EzPlatformPageBuilder/page_builder/block/config/embed.html.twig'
                  thumbnail: bundles/ezplatformpagefieldtype/images/thumbnails/embed.svg
                  name: Embed
                  category: default
                  views:
                      default:
                          name: 'Default block layout'
                          template: 'EzPlatformPageFieldTypeBundle:blocks:embed.html.twig'
                          options: {  }
                      0:
                          template: '@ezdesign/blocks/embed.html.twig'
                          name: 'Platform EE Demo embed block'
                          options: {  }
                      1:
                          template: '@ezdesign/blocks/embed_wide.html.twig'
                          name: 'Platform EE Demo wide embed block'
                          options: {  }
      

      The two views with the keys 0 and 1 are set in app/config/default_layouts.yml, with real identifiers:

              embed:
                  views:
                      embed:
                          template: '@ezdesign/blocks/embed.html.twig'
                          name: 'Platform EE Demo embed block'
      
                      embed_wide:
                          template: '@ezdesign/blocks/embed_wide.html.twig'
                          name: 'Platform EE Demo wide embed block'
      

      I expect them to be listed in debug:config with their actual identifiers. I don't know if it does or not have consequences on the application itself, but it may.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bertrand.dunogier@ez.no Bertrand Dunogier
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: