Created
June 27, 2022 01:52
-
-
Save Alexander-Pop/36199cbecb9a1604218ef12ee27f70be to your computer and use it in GitHub Desktop.
Magento2 - Add Custom Layout Update for a specific Cms Page #layout #magento2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
pattern xml file name : cms_page_view_selectable_<CMS Page Identifier>_<Layout Update Name>.xml | |
--> | |
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<referenceContainer name="content"> | |
<block class="\Vendor\AboutUS\Block\Custom" name="vendor.about-us.custom" template="Vendor_AboutUs::custom-template.phtml" before="-"/> | |
</referenceContainer> | |
</body> | |
</page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment