Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2760

Overwriting/Chaning of zone in default layout not possible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Component/s: Landing Page Manager
    • Labels:
      None

      Description

      I wanted to add a zone to the default layout. So i added a configuration like

          layouts:
              default:
                  identifier: 'default'
                  name: 'Simple Page'
                  description: 'Content with two zones'
                  thumbnail: '/assets/images/layouts/default.png'
                  template: 'layouts/default.html.twig'
                  zones:
                      zone_2:
                          name: 'Content'
      

      which internally results in a zone config looking like, after the merging of the default and my config.

          layouts:
              default:
                  identifier: 'default'
                  name: 'Simple Page'
                  description: 'Content with two zones'
                  thumbnail: '/assets/images/layouts/default.png'
                  template: 'layouts/default.html.twig'
                  zones:
                      default_id:
                          name: 'default'
                      0:
                          name: 'Content'
      

      which gives the following error, when switiching the layout in backend:

      Type error: Argument 1 passed to EzSystems\EzPlatformPageFieldType\FieldType\LandingPage\Model\Zone::__construct() must be of the type string, int given, called in /var/www/vendor/ezsystems/ezplatform-page-builder/src/bundle/Controller/PreviewController.php on line 278
      

      As there is no way to disabled the default layout, this is crucial for me to work.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              hannes.giesenow@elbformat.de Hannes Giesenow
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: