-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout shouldn't be set in a page_layout
xml file.
#537
Comments
Hi @jasperzeinstra. Thank you for your report. Please, add a comment to assign the issue:
|
Very strange, after an update from magento 2.4.2-p1 to 2.4.3 suddenly this exact issue surfaced. Now im not able to change the layout on the category page anymore from the theme. When removing the layout attribute in /magento/vendor/magento/module-page-builder/view/frontend/page_layout/catalog_category_view.xml it works again. |
I think the issue is that catalog_category_view.xml is in the wrong folder. Is there any specific reason it is in app/code/Magento/PageBuilder/view/frontend/page_layout ? If not then it should be moved to app/code/Magento/PageBuilder/view/frontend/layout which fixes the current issue and makes sense given that app/code/Magento/PageBuilder/view/frontend/layouts.xml contains the 3 page layouts and no references to catalog_category_view <layout id="cms-full-width">
<label translate="true">Page -- Full Width</label>
</layout>
<layout id="category-full-width">
<label translate="true">Category -- Full Width</label>
</layout>
<layout id="product-full-width">
<label translate="true">Product -- Full Width</label>
</layout> Looks like there is already a pull request #782 to fix this issue @unailopez16 what do you think about this propose solution? Additionally testing this solution with luma on 2.4.3 seems to fix the issue. |
Hello @jasperzeinstra, Thanks for the report and collaboration! The mentioned issue is not reproducible for us. Please refer to the below comment for more details: Let us know in case we have missed anything. Thanks |
Hello @bluemwhitew @jasperzeinstra @SamuelColacchia, Please refer to this #835 (comment). Thanks |
Preconditions (*)
Steps to reproduce (*)
Magento_Catalog/layout/catalaog_category_view.xml
in your theme.layout
of the xml-nodepage
to1column
Expected result (*)
Actual result (*)
This issue is caused by the file
view/frontend/page_layout/catalog_category_view.xml
. Apage_layout
file should never set alayout
becasue they are the last loaded layout xml files. This bug overwrites the value for layout set in the theme.This is the patch that resolves the issue. I don't have a paid GitHub account, so can't create a PR.
The text was updated successfully, but these errors were encountered: