PHPackages                             derfuchs/magento2-morelayouthandles - 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. derfuchs/magento2-morelayouthandles

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

derfuchs/magento2-morelayouthandles
===================================

Add some more useful layout handles to Magento 2

1.0.0(5y ago)00MiTPHP

Since Dec 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DerFuchs/magento2-morelayouthandles)[ Packagist](https://packagist.org/packages/derfuchs/magento2-morelayouthandles)[ RSS](/packages/derfuchs-magento2-morelayouthandles/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

### Magento 2 - More Layout Handles

[](#magento-2---more-layout-handles)

 Get some more useful layout handles for Magento 2
 [**Explore the docs »**](https://github.com/DerFuchs/magento2-morelayouthandles)

 [Report Bug](https://github.com/DerFuchs/magento2-morelayouthandles/issues) · [Request Feature](https://github.com/DerFuchs/magento2-morelayouthandles/issues)

 Table of Contents
-----------------

[](#table-of-contents)

1. [About The Project](#about-the-project)
    - [Built For](#built-for)
2. [Installation](#installation)
3. [Usage](#usage)
4. [Available Layout Handles](#available-layout-handles)
5. [Roadmap](#roadmap)
6. [Contributing](#contributing)
7. [License](#license)
8. [Contact](#contact)

About The Project
-----------------

[](#about-the-project)

This Module dynamically adds some more layout handles to specific Magento 2 pages.

This becomes very useful when you want to make changes to the layout, for example remove some blocks or move them to another location, but you want them to be available only on specific pages or for specific products, attribute sets and stuff like that. See [Available Layout Handles](#available-layout-handles) for what's possible at the moment with this version of the module.

### Built For

[](#built-for)

- Magento 2, tested on Version 2.4.x

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

[](#installation)

This module is available as a composer module for Magento 2

1. Install to your Magento 2 by using composer ```
    composer require derfuchs/magento2-morelayouthandles
    ```
2. Upgrade Magento 2 ```
    bin/magento setup:upgrade
    ```
3. Re-compile Magento's dependency injections ```
    bin/magento setup:di:compile
    ```

Usage
-----

[](#usage)

Enable every desired layout handle in this modules config section in Magento's admin panel. Then set your layout updates in a layout xml file:

1. Enable the layout handle you want to use: `Magento Admin -> Stores -> Configuration -> General -> More Layout Handles`
2. Check if the new layout handle appears by using a developer toolbar or enabling the debug output of this module: `Magento Admin -> Stores -> Configuration -> General -> More Layout Handles -> General Settings -> Debug`
3. Create a new file named by the resulting layout handle `/app/design/frontend///Magento_Theme/layout/.xml` (You don't have to use the Magento\_Theme folder, it's just an example)
4. Start writing your layout update XML. Feel free to use this template as a starting point:

```

```

5. Clean Caches: `bin/magento cache:clean`

That's it. When the layout handle occurs, Magento will bake in your layout updates.

Available Layout Handles
------------------------

[](#available-layout-handles)

This is a list of all possible layout handles

### Product's attribute set ID

[](#products-attribute-set-id)

- available at: product detail pages
- layout handle's name: catalog\_product\_view\_attribute\_set\_id\_(attribute-set-id)

### Product's attribute set name

[](#products-attribute-set-name)

- available at: product detail pages
- layout handle's name: catalog\_product\_view\_attribute\_set\_name\_(attribute-set-name)

### Didn't find what you need?

[](#didnt-find-what-you-need)

Feel free to [ask for implementation](https://github.com/DerFuchs/magento2-morelayouthandles/issues) or do it by yourself (and make a pull request to let others participate :) ).

Roadmap
-------

[](#roadmap)

See the [open issues](https://github.com/DerFuchs/magento2-morelayouthandles/issues) for a list of proposed features (and known issues).

### Upcoming Version 1.1

[](#upcoming-version-11)

Add layout handles on the occurance of specific product attributes

### Recent Version 1.0

[](#recent-version-10)

Layout handles for product's attribute set ID and attribute set name on product pages

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

[](#contributing)

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

License
-------

[](#license)

Distributed under the MIT License. See `LICENSE` for more information.

Contact
-------

[](#contact)

Michael Fuchs - derfuchs -

Project Link:

[![Contributors](https://camo.githubusercontent.com/1392017e11990d50553f70c5abc0b84fd25911b8497e4f016ba97fa58755affb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f44657246756368732f6d6167656e746f322d6d6f72656c61796f757468616e646c65732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/DerFuchs/magento2-morelayouthandles/graphs/contributors)[![Forks](https://camo.githubusercontent.com/96f861304cb77250573234d99ae2b4b13454f1cfe57298b345965ed2e4e2c9e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f44657246756368732f6d6167656e746f322d6d6f72656c61796f757468616e646c65732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/DerFuchs/magento2-morelayouthandles/network/members)[![Stargazers](https://camo.githubusercontent.com/c40e2445a54f8767fcba84c541f78a4c7a1d45291597e6c878df71a4939b938a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f44657246756368732f6d6167656e746f322d6d6f72656c61796f757468616e646c65732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/DerFuchs/magento2-morelayouthandles/stargazers)[![Issues](https://camo.githubusercontent.com/2743c20f86677642905378869440a277b483c755a89f4ae6427df1f874cfcd6f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f44657246756368732f6d6167656e746f322d6d6f72656c61796f757468616e646c65732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/DerFuchs/magento2-morelayouthandles/issues)[![MIT License](https://camo.githubusercontent.com/dc9ee4e1e5a5a356859a833cf92f33e285e6dc219044370849857c3b7f47fa1c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f44657246756368732f6d6167656e746f322d6d6f72656c61796f757468616e646c65732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/DerFuchs/magento2-morelayouthandles/blob/main/LICENSE)[![LinkedIn](https://camo.githubusercontent.com/d52963778220cbec61d6ed72270f9735024ffceeb551e5c3933d4e03b4694cf1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e6b6564496e2d626c61636b2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e6b6564696e26636f6c6f72423d353535)](https://www.linkedin.com/in/derfuchs/)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1980d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/105b69a3f562ef56de1f129270a52c0bcf528431465eb02e74436b712a651467?d=identicon)[derfuchs](/maintainers/derfuchs)

---

Top Contributors

[![DerFuchs](https://avatars.githubusercontent.com/u/9048957?v=4)](https://github.com/DerFuchs "DerFuchs (23 commits)")

### Embed Badge

![Health badge](/badges/derfuchs-magento2-morelayouthandles/health.svg)

```
[![Health](https://phpackages.com/badges/derfuchs-magento2-morelayouthandles/health.svg)](https://phpackages.com/packages/derfuchs-magento2-morelayouthandles)
```

###  Alternatives

[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)[lillik/magento2-price-decimal

Magento 2 Price Decimal Precision

111147.5k](/packages/lillik-magento2-price-decimal)[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27659.1k4](/packages/nosto-module-nostotagging)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)[doofinder/doofinder-magento2

Doofinder module for Magento 2

13204.0k1](/packages/doofinder-doofinder-magento2)

PHPackages © 2026

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