Fix page layout xml of pagebuilder overriding the layout set by theme#906
Fix page layout xml of pagebuilder overriding the layout set by theme#906GrimLink wants to merge 5 commits intomagento:developfrom
Conversation
To allow layout overrides from Theme and Admin Config
|
@magento run all tests |
|
@engcom-Hotel, the tests are still failing regardless of this change. It looks like the issue is pre-existing, so I can't fix what was already broken. 😅 |
|
Hello @GrimLink, Thank you for your reply! I know the static test failure is not due to your code changes, they are related to the copyright missing in the XML file updated in this PR. So you just need to add the below line to fix the static test failure: The other functional test failures are the not related to this PR, so we can skip it for now. Also please add some automated test in accordance to the DOD. Thank you |
|
@engcom-Hotel Regarding the copyright block: it is present in the file (see below), consistent with the other XML files. However, I’ve updated it to match your suggestion. <!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->Regarding the Definition of Done (DoD): Could you clarify why automated tests are required for this specific change? Since this is a straightforward bug fix for a long-standing issue (dating back to 2022) and doesn't introduce new logic, it seems to fall under the "as applicable" of a DoD. I’d like to ensure we aren’t adding unnecessary test overhead for such a minor correction. |
|
@magento run all tests |
|
Hello @GrimLink, Thank you for making the changes to fix the static test failure.
I agree with your point but I guess a minimal MFTF or integration test that verifies theme-level layout overrides are respected on category pages when PageBuilder is active. This prevents future reintroduction of the bug. Thank you |
Verifies that category design layout settings are respected on the storefront when PageBuilder is enabled, ensuring layouts are not hardcoded.
|
@magento run all tests |
engcom-Hotel
left a comment
There was a problem hiding this comment.
Hello @GrimLink,
Thank you for adding the MFTF test. By looking into the functional test failures, it seems the added MFTF is failing.
Please look into it.
Thank you
|
@magento run all tests |
|
@engcom-Hotel the test is now green, only one other test is failing which is not related to this PR. |
Description (*)
This Pull Request removes the hardcoded
layoutattribute fromMagento/PageBuilder/view/frontend/page_layout/catalog_category_view.xml.Since the Magento 2.4.6-p3, this attribute forces a specific layout, making it impossible for custom themes to override the category page layout via their own XML files. Removing this attribute restores the expected layout inheritance and allows theme-level overrides to function correctly.
Fixed Issues (if relevant)
Related Pull Requests
Manual testing scenarios (*)
app/design/frontend/[Vendor]/[Theme]/Magento_Catalog/layout/catalog_category_view.xml.<page layout="1column" ...>).Questions or comments
N/A
Checklist