Conditionally process layout XML file

by Ynhockey   Last Updated August 22, 2018 13:09 PM

I have an XML layout file, specifically customer_account_login.xml, which is processed automatically by Magento and replaces the out-of-the-box copy. In some cases I would like to do this, while in others I want the out-of-the-box file (based on backend configuration).

I have not found a way to turn off processing for my XML file under certain conditions, but assume there is some class that can be overridden to do this. A generic way would be preferable, but I could live with a method that toggles just this specific XML file.

Related Questions

CE 1.9 - CSS class for CMS Page Layout update

Updated June 29, 2015 18:04 PM

Magento 2 - Updating Product list page Layout

Updated April 06, 2018 11:09 AM

Duplicate product/view tabs element in Magento 2

Updated March 13, 2017 15:09 PM