Module for Magento 2 that allows you to add global layout update files to be selected from admin, by using '0' instead of an entity_id
Allows you to add global layout update files to be selected from admin, by using
0 instead of a
Compatible with Magento 2.3.4 and higher, since cms-page/product/category specific layouts where introduced in this version.
In Magento 2.3.4, xml layout updates were removed from the Magento Admin, for security reasons. Previously this textfield allowed you to add XML Layout updates to any given Category, Product or CMS Page. After the update, this textfield is no longer available, but you can select custom layout updates which are defined in xml layout files in the filesystem.
After uploading/deploying selectable layout files onto your project's filesystem, these layouts can be selected from the admin under the Design section. The field is called Custom Layout Update.
Replace identifiers in selectable layouts with a 0 (zero).
Add layout file to themes/modules using:
These files can go anywhere where you'd normally put layout files. For example:
You can now select the layout update at any given Category/Product/Page, under Custom layout update field of Design.
More info on default behaviour of selectable layouts: Magento DevDocs: Create cms-page/product/category-specific layouts
composer require integer-net/magento2-global-custom-layout
Zero configuration needed.
Please see CHANGELOG for more information on what has changed recently.
Configure test database in
dev/tests/integration/etc/install-config-mysql.php. Read more in the Magento docs.
Test/Integration/phpunit.xml.dist from the package to
dev/tests/integration/phpunit.xml in your Magento installation.
In that directory, run
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.