gtstudio/module-selected-layout
最新稳定版本:1.0.3
Composer 安装命令:
composer require gtstudio/module-selected-layout
包简介
Add general selectable layout functionality on CMS pages,category and products
README 文档
README
gtstudio/module-selected-layout Main Functionalities
This module Make Custom Layout Update file selectable generally available in all categories, products and cms pages. Based on this request : magento/magento2#26901
Usage
With this module, you will be able to create generals selectable layouts updates like this :
catalog_category_view_selectable_all_mycustomLayout catalog_product_view_selectable_all_mycustomLayout cms_page_view_selectable_all_mycustomLayout
So this layout update will be available on all cms pages, categories or products on field "Custom Layout Update"
Installation
* = in production please use the --keep-generated option
Type 1: Zip file
- Unzip the zip file in
app/code/Gtstudio - Enable the module by running
php bin/magento module:enable Gtstudio_DarkMode - Apply database updates by running
php bin/magento setup:upgrade* - Flush the cache by running
php bin/magento cache:flush
Type 2: Composer
- Install the module composer by running
composer require gtstudio/module-selected-layout - enable the module by running
php bin/magento module:enable Gtstudio_SelectedLayout - apply database updates by running
php bin/magento setup:upgrade* - Flush the cache by running
php bin/magento cache:flush
Specifications
- Plugin
Magento\Cms\Model\Page\CustomLayout\CustomLayoutManager - Plugin
Magento\Catalog\Model\Category\Attribute\LayoutUpdateManager - Plugin
Magento\Catalog\Model\Product\Attribute\LayoutUpdateManager
统计信息
- 总下载量: 15.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04
