-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Custom update layout XML not applied to product page in 2.3.5-p1 #28750
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
Comments
Hi @kardi31. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
|
Same for me . I'm trying to update alyout of the
|
I actually solved my issue, posting here in case it helps....
FYI the handle name is the full name of your file! |
I wanted to add a little update to the above for CMS pages. Firstly, you can use any update handle that's available, it doesn't have to be the file name. This mightbe obvious but I wanted to explicitly declare it. For example Second, turns out the homepage ignores Layout Updates, because it generates from a different controller (cms_index_index not cms_page_view"), while Layout is aware of this (and adds extra update handles) the file loader for the layout files is not! To fix it, copy your layout file and rename from cms_page_view to cms_index_index. You will have to update layout in 2 places, and do not change the page ID or the Layout name on the file!. Make sure you use a handle that is present on both homepage and CMS page view (like Example :
Copy to : |
Hi @engcom-Alfa. Thank you for working on this issue.
|
Hi @kardi31. Thank you for your report! Unfortunately, we are not able to reproduce the issue on fresh 2.4-develop. Looks like the problem has already been fixed. Manual testing scenario:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="breadcrumbs" remove="true"/>
</body>
</page>
Actual Result: ✔️ Breadcrumbs from the product page are removed So, we have to close it. |
Preconditions (*)
2.3.5-p1
Steps to reproduce (*)
<referenceBlock name="breadcrumbs" remove="true" />
removebreadcrumbs
custom layout update.Expected result (*)
Breadcrumbs from product page should be removed
Actual result (*)
Breadcrumbs are still visible on product page.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: