You are starting a project and realized you need to clean the content of a container. How do you achieve this?
Select an option, then click Submit answer.
-
○
You create a view/layout/mycompany_mymodule_index. xml and add a referenceContainer. You will then remove the existing blocks one by one
-
○
YOU create a view/layout/mycompany_mymodule_index. xmlWith the referenceContainer and remove all the blocks by adding remove name='*' />
-
○
The layout merging logic will override a container if you reference the container and load your module after the original one using sequence in your module. xml
-
○
YOU create a view\layout override/mycoapany_mymodule_index. xml and add the new blocks to the referenceContainer to override the previous ones