xguenel/module-collapsible-toggle
Composer 安装命令:
composer require xguenel/module-collapsible-toggle
包简介
Magento 2 module that allows you to expand/collapse all collapsible elements in the Magento back-office using keyboard shortcuts.
关键字:
README 文档
README
Magento 2 module that allows you to expand/collapse all collapsible elements in the Magento back-office using keyboard shortcuts.
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
- 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
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
- Magento 2.4.x
- PHP 8.1 or higher
Installation
Manual Installation
-
Create the module directory:
mkdir -p app/code/Xguenel/CollapsibleToggle
-
Copy the module files to this directory
-
Enable the module:
bin/magento module:enable Xguenel_CollapsibleToggle
-
Update the database and recompile:
bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
Configuration
Access the module configuration via:
Stores > Configuration > Xguenel Extensions > Collapsible Toggle
Available Options
| Option | Description | Default Value |
|---|---|---|
| Enable Module | Enables or disables the module | Yes |
| Expand All Key | Key to expand all elements (with Ctrl/Cmd + Shift) | A |
Usage
Default Keyboard Shortcuts
| Action | Windows/Linux | macOS |
|---|---|---|
| Expand or Collapse all elements | Ctrl + Shift + A |
⌘ + Shift + A |
How to Use
- Log in to the Magento back-office
- Navigate to a page containing collapsible elements (e.g., System > Configuration)
- Use the keyboard shortcuts to expand/collapse all elements
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
The module defines an ACL permission for configuration access:
Xguenel_CollapsibleToggle::config- Access to module configuration
Browser Compatibility
The module is compatible with all modern browsers supporting:
- ES5 JavaScript
- jQuery (included in Magento)
- The
KeyboardEventAPI - The
User-Agent Client HintsAPI (with fallback tonavigator.userAgentfor older browsers)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Xguenel
© 2025 Xguenel. All rights reserved.
Support
For any questions or issues, please create an issue in the project repository.
Changelog
Version 1.0.0
- Initial release
- Keyboard shortcuts to expand/collapse collapsible elements
- macOS support with Command key
- Customizable key configuration
- Module enable/disable option
xguenel/module-collapsible-toggle 适用场景与选型建议
xguenel/module-collapsible-toggle 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 381 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「magento」 「backoffice」 「shortcut」 「back-office」 「magento2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 xguenel/module-collapsible-toggle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 xguenel/module-collapsible-toggle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 xguenel/module-collapsible-toggle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Roadiz sub-package for Document system.
Roadiz base models for entities.
Roadiz is a modern CMS based on a polymorphic content-schema system which can handle many types of services. It’s based on Symfony component and Doctrine ORM for maximum performances and security.
Roadiz CMS backoffice theme
Show Environment Bar in Backoffice
统计信息
- 总下载量: 381
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 37
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-17