PHPackages                             integer-net/magento2-global-custom-layout - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. integer-net/magento2-global-custom-layout

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

integer-net/magento2-global-custom-layout
=========================================

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

1.1.2(6y ago)4095.4k↓15.6%8[2 issues](https://github.com/integer-net/magento2-global-custom-layout/issues)MITPHPPHP &gt;=7.1.0

Since Apr 27Pushed 7mo ago10 watchersCompare

[ Source](https://github.com/integer-net/magento2-global-custom-layout)[ Packagist](https://packagist.org/packages/integer-net/magento2-global-custom-layout)[ RSS](/packages/integer-net-magento2-global-custom-layout/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (8)Used By (0)

Integer\_Net GlobalCustomLayout
===============================

[](#integer_net-globalcustomlayout)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a455ea1503d31b137db39d4b0524bf34669deb0b2f3b695df6ffb5ff9dafbcb8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e74656765722d6e65742f6d6167656e746f322d676c6f62616c2d637573746f6d2d6c61796f75742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/integer-net/magento2-global-custom-layout)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/6d378b342853dc6c77edecef7591750592d7493736b0ac8be5de00e431322775/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e74656765722d6e65742f6d6167656e746f322d676c6f62616c2d637573746f6d2d6c61796f75742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/integer-net/magento2-global-custom-layout)[![Coverage Status](https://camo.githubusercontent.com/1163d9c4049df1b2d1cd16fe03a176a3cdeb37cc134aeda16e61a34e785b6ab9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696e74656765722d6e65742f6d6167656e746f322d676c6f62616c2d637573746f6d2d6c61796f75742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/integer-net/magento2-global-custom-layout/code-structure)[![Quality Score](https://camo.githubusercontent.com/7fb9fa6237705371151615da0191764a29adf3c23629a8d312f37cdec2fb667d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e74656765722d6e65742f6d6167656e746f322d676c6f62616c2d637573746f6d2d6c61796f75742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/integer-net/magento2-global-custom-layout)[![Supported Magento Versions](https://camo.githubusercontent.com/0b6d28a963c77797b2df0442dbf1b6340361b3125bd3ce1dc10ce7a7d1a1fdcf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0b6d28a963c77797b2df0442dbf1b6340361b3125bd3ce1dc10ce7a7d1a1fdcf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e33253230253743253230322e342d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)

Allows you to add global layout update files to be selected from admin, by using `0` instead of a `category_id` / `sku` / `url_path`.

Compatible with Magento 2.3.4 and higher, since **cms-page/product/category specific layouts** where introduced in this version.

Purpose
-------

[](#purpose)

In Magento 2.3.4, [xml layout updates were removed from the Magento Admin](https://devdocs.magento.com/guides/v2.3/release-notes/release-notes-2-3-4-open-source.html#highlights), 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**.

Usage:
------

[](#usage)

Replace identifiers in selectable layouts with a 0 (zero). Add layout file to themes/modules using:

- catalog\_category\_view\_selectable\_0\_.xml for Categories
- catalog\_product\_view\_selectable\_0\_.xml for Products
- cms\_page\_view\_selectable\_0\_.xml for Cms pages

These files can go anywhere where you'd normally put layout files. For example: `app/design/frontend/[Theme_Vendor]/[Theme_Name]/Magento_Theme/layout/catalog_category_view_0_customchanges.xml`

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](https://developer.adobe.com/commerce/frontend-core/guide/layouts/xml-manage/#create-selectable-layouts)

Installation
------------

[](#installation)

1. Install via composer ```
    composer require integer-net/magento2-global-custom-layout

    ```
2. Enable module ```
    bin/magento setup:upgrade

    ```

Configuration
-------------

[](#configuration)

Zero configuration needed.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

### Magento Integration Tests

[](#magento-integration-tests)

1. Configure test database in `dev/tests/integration/etc/install-config-mysql.php`. [Read more in the Magento docs.](https://developer.adobe.com/commerce/testing/guide/integration/)
2. Copy `Test/Integration/phpunit.xml.dist` from the package to `dev/tests/integration/phpunit.xml` in your Magento installation.
3. In that directory, run

    ```
    ../../../vendor/bin/phpunit
    ```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Known issues
------------

[](#known-issues)

1. Does not work with the homepage (cms\_index\_index). But hey, it doesn't in the default Magento implementation either.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Willem Wigman](https://github.com/wigman)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.txt) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance44

Moderate activity, may be stable

Popularity44

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

4

Last Release

2198d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cd0062c670f61aa554c5d30193848ac11031b6cdb8f8616249b95a235eb475d?d=identicon)[wigman](/maintainers/wigman)

---

Top Contributors

[![wigman](https://avatars.githubusercontent.com/u/4800926?v=4)](https://github.com/wigman "wigman (21 commits)")[![schmengler](https://avatars.githubusercontent.com/u/367320?v=4)](https://github.com/schmengler "schmengler (10 commits)")[![avstudnitz](https://avatars.githubusercontent.com/u/662059?v=4)](https://github.com/avstudnitz "avstudnitz (1 commits)")

---

Tags

magentomagento2magento2-extensionmagento2-module

### Embed Badge

![Health badge](/badges/integer-net-magento2-global-custom-layout/health.svg)

```
[![Health](https://phpackages.com/badges/integer-net-magento2-global-custom-layout/health.svg)](https://phpackages.com/packages/integer-net-magento2-global-custom-layout)
```

###  Alternatives

[snowdog/module-menu

Provides powerful menu editor to replace category based menus in Magento 2

3271.7M5](/packages/snowdog-module-menu)[baldwin/magento2-module-url-data-integrity-checker

Magento 2 module which can find potential url related problems in your catalog data

281773.3k](/packages/baldwin-magento2-module-url-data-integrity-checker)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69344.4k](/packages/run-as-root-magento2-prometheus-exporter)[swissup/module-search-mysql-legacy

Legacy mysql search for magento 2.4

10483.0k](/packages/swissup-module-search-mysql-legacy)[swissup/module-marketplace

One-Click modules and themes downloader/installer

18383.8k2](/packages/swissup-module-marketplace)[faonni/module-indexer-url-rewrite

Extension rebuild UrlRewrite index.

4072.4k](/packages/faonni-module-indexer-url-rewrite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
