Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
2.5.0
-
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
- duplicates
-
EZEE-2750 Overriding default layout in Page Builder produces an error
- Closed