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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 2.5.0
    • Landing Page Manager
    • 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

        Activity

          People

            Unassigned Unassigned
            9dcdb0dd-5caa-459b-93b0-1ce97332c3fa@accounts.ibexa.co Hannes Giesenow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: