This forum is now Read-Only. The Magento Community Forum is scheduled to close permanently on December 31, 2025. Please save any necessary information before this date. Join us on Slack for continued engagement!
I want to add custom blocks programatically to a CMS page. If I target cms_page_view it works but obviously would affect all CMS pages - I want to be able to restrict this to one CMS page
Is there a equivalent of PRODUCT_<id> in Magento 2 for CMS Pages?
The answer I came up with was to use cms_page_view.xml and then check the current URL to ensure I was on the right page. Not a particularly elegant solution but works