PHPackages                             xguenel/module-collapsible-toggle - 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. [Admin Panels](/categories/admin)
4. /
5. xguenel/module-collapsible-toggle

ActiveMagento2-module[Admin Panels](/categories/admin)

xguenel/module-collapsible-toggle
=================================

Magento 2 module that allows you to expand/collapse all collapsible elements in the Magento back-office using keyboard shortcuts.

1.0.0(4mo ago)0244↓50%MITHTML

Since Dec 17Pushed 4mo agoCompare

[ Source](https://github.com/xguenel/module-collapsible-toggle)[ Packagist](https://packagist.org/packages/xguenel/module-collapsible-toggle)[ RSS](/packages/xguenel-module-collapsible-toggle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Xguenel\_CollapsibleToggle
==========================

[](#xguenel_collapsibletoggle)

Magento 2 module that allows you to expand/collapse all collapsible elements in the Magento back-office using keyboard shortcuts.

Description
-----------

[](#description)

This module adds convenient keyboard shortcuts to improve Magento administrator productivity. It allows you to quickly open or close all collapsible panels on an admin page, particularly useful on system configuration pages.

Features
--------

[](#features)

- **Expand All Elements**: Opens all collapsible panels on the current page
- **Collapse All Elements**: Closes all collapsible panels on the current page
- **macOS Compatibility**: Automatically uses the Command key (⌘) on macOS instead of Ctrl
- **Configurable Shortcuts**: Shortcut keys can be customized from the administration
- **Enable/Disable**: The module can be enabled or disabled from the configuration

### Supported Elements

[](#supported-elements)

The module handles several types of Magento collapsible elements:

- Configuration sections (`.section-config`)
- Collapsible panels (`[data-role="collapsible"]`)
- Admin collapsible blocks (`.admin__collapsible-block-wrapper`)
- Fieldset wrappers (`.fieldset-wrapper`)

Requirements
------------

[](#requirements)

- Magento 2.4.x
- PHP 8.1 or higher

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

[](#installation)

### Manual Installation

[](#manual-installation)

1. Create the module directory:

    ```
    mkdir -p app/code/Xguenel/CollapsibleToggle
    ```
2. Copy the module files to this directory
3. Enable the module:

    ```
    bin/magento module:enable Xguenel_CollapsibleToggle
    ```
4. Update the database and recompile:

    ```
    bin/magento setup:upgrade
    bin/magento setup:di:compile
    bin/magento cache:flush
    ```

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

[](#configuration)

Access the module configuration via:

**Stores &gt; Configuration &gt; Xguenel Extensions &gt; Collapsible Toggle**

### Available Options

[](#available-options)

OptionDescriptionDefault ValueEnable ModuleEnables or disables the moduleYesExpand All KeyKey to expand all elements (with Ctrl/Cmd + Shift)AUsage
-----

[](#usage)

### Default Keyboard Shortcuts

[](#default-keyboard-shortcuts)

ActionWindows/LinuxmacOSExpand or Collapse all elements`Ctrl + Shift + A``⌘ + Shift + A`### How to Use

[](#how-to-use)

1. Log in to the Magento back-office
2. Navigate to a page containing collapsible elements (e.g., System &gt; Configuration)
3. Use the keyboard shortcuts to expand/collapse all elements

Module Structure
----------------

[](#module-structure)

```
Xguenel/CollapsibleToggle/
├── Block/
│   └── Adminhtml/
│       └── CollapsibleToggle.php             # Block to retrieve configuration
├── etc/
│   ├── acl.xml                               # ACL permissions definition
│   ├── adminhtml/
│   │   └── system.xml                        # Admin system configuration
│   ├── config.xml                            # Default configuration values
│   └── module.xml                            # Module declaration
├── view/
│   └── adminhtml/
│       ├── layout/
│       │   ├── adminhtml_dashboard_index.xml # Dashboard layout
│       │   ├── catalog_product_index.xml     # Product index layout
│       │   ├── default.xml                   # Default layout
│       │   └── sales_order_index.xml         # Order index layout
│       └── templates/
│           └── collapsible-toggle.phtml      # Template with JavaScript
├── composer.json                             # Composer dependencies
├── LICENSE                                   # License file
├── registration.php                          # Module registration
├── README.md                                 # This file (English)
└── README_FR.md                              # French documentation

```

ACL Permissions
---------------

[](#acl-permissions)

The module defines an ACL permission for configuration access:

- `Xguenel_CollapsibleToggle::config` - Access to module configuration

Browser Compatibility
---------------------

[](#browser-compatibility)

The module is compatible with all modern browsers supporting:

- ES5 JavaScript
- jQuery (included in Magento)
- The `KeyboardEvent` API
- The `User-Agent Client Hints` API (with fallback to `navigator.userAgent` for older browsers)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.

Author
------

[](#author)

**Xguenel**

© 2025 Xguenel. All rights reserved.

Support
-------

[](#support)

For any questions or issues, please create an issue in the project repository.

Changelog
---------

[](#changelog)

### Version 1.0.0

[](#version-100)

- Initial release
- Keyboard shortcuts to expand/collapse collapsible elements
- macOS support with Command key
- Customizable key configuration
- Module enable/disable option

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance74

Regular maintenance activity

Popularity15

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1087fc834becd7ceccc34b8a72ffe2cd1614c594ea1881890333bbb07cb3c59?d=identicon)[xguenel](/maintainers/xguenel)

---

Tags

phpmagentobackofficeshortcutmagento2back officecore\_config\_datastores configconfig path

### Embed Badge

![Health badge](/badges/xguenel-module-collapsible-toggle/health.svg)

```
[![Health](https://phpackages.com/badges/xguenel-module-collapsible-toggle/health.svg)](https://phpackages.com/packages/xguenel-module-collapsible-toggle)
```

###  Alternatives

[redchamps/module-clean-admin-menu

It will merge all third party extensions menu items to single menu item named 'Extensions'.

164416.3k](/packages/redchamps-module-clean-admin-menu)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

119.1k](/packages/opengento-module-category-import-export)

PHPackages © 2026

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