2

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page.

Then I look at the cms page edit page, in M1 I can update the Page layout XML like this:

enter image description here

But in M2 I can't find this section:

enter image description here

1

This functionality was removed in Magento 2.3.4 due to a vulnerability which allowed admin users to execute code via the custom layout field. There is more info about it in this blog post.

The solution is now to manage this with XML files in the codebase, the file name must be in this format - catalog_category_view_selectable_<Category ID>_<Layout Update Name>.xml

See the official dev docs for more info.

| improve this answer | |
  • thanks for the information, if I have a cms page with about-us as a page identifier, where should i define the layout XML ? Magento_Theme/layout/cms_page_view_selectable_about-us_??? ?? – Padawan May 28 at 23:54
0

That's great to know, you've migrated your store from M1 to M2, Please check out this Magento official DevDoc.

Besides, this functionality has been removed in 2.3.4

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.