Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
2.5.6
-
None
Description
Description
An attribute of a block (text-field) is never used anymore.
Therefore we removed this attribute (textfield2) from a module in blocks.yml and from the .twig-file.
The result is:
- all pages including such a module, cannot be edited anymore.
- all other blocks on this page are not editable too.
Reproduce Error
- 1.) Create block "test_module"
- 2.) Create twig-Template
- 3.) Create block instance on a page
- 4.) blocks.yml: Remove textfield2
- 5.) Try to edit page/block
--> page won't be loaded in edit-mode
--> All pages including such a block cannot be edited anymore.
Source-example
.yml
ezplatform_page_fieldtype: blocks: test_module: name: 'Test-Module' thumbnail: '/bundles/ezplatformadminui/img/ez-icons.svg#paragraph' category: 'snh' views: default: template: '/themes/snh_website/blocks/testModule/testModule.html.twig' name: 'Default view' attributes: textfield1: type: 'string' name: 'Text field 1' textfield2: type: 'string' name: 'Text field 2'
.twig
<section class="text-module"> <div class="container"> <div class="row"> {{ textfield1 }} </div> <div class="row"> {{ textfield2 }} </div> </div> </section>
Attachments
Issue Links
- duplicates
-
EZEE-2885 Changing definition of custom block for existing Landing Page results in JS error on editing
- Closed