anasstouaticoder / magento2-module-instantconfigurationcopy
InstantConfigurationCopy 模块为 Magento 2 后台提供了一种轻松复制配置字段信息的方法。
1.2.5
2024-05-02 09:40 UTC
Requires
- php: ~7.0||~7.1||~7.2||~7.3||~7.4.0||~8.1||~8.2
- anasstouaticoder/magento2-module-base: ^1
- magento/framework: *
- magento/module-config: *
README
复制字段路径和值,在父作用域中显示其覆盖值
``anasstouaticoder/magento2-module-instantconfigurationcopy``
主要功能
提供在配置部分复制字段路径和值的方法
安装
* = 在生产环境中请使用 --keep-generated 选项
使用 composer 2 安装
- 在 Magento 项目根目录中运行命令
composer require anasstouaticoder/magento2-module-instantconfigurationcopy - 通过运行
php bin/magento module:enable AnassTouatiCoder_InstantConfigurationCopy启用模块 - 通过运行
php bin/magento cache:flush清除缓存
压缩文件
- 在
app/code/AnassTouatiCoder中解压压缩文件 - 通过运行
php bin/magento module:enable AnassTouatiCoder_InstantConfigurationCopy启用模块 - 通过运行
php bin/magento cache:flush清除缓存
配置
类型 1:在后台办公室
安装插件后,激活它很简单,以管理员身份登录,然后导航到商店 => 配置 => 高级 => 开发者 => 调试 => 启用系统配置路径提示给管理员或启用系统配置复制值给管理员,最后选择是并保存。现在在每个配置字段下,您都会看到路径:配置路径,复制路径按钮和复制值按钮
类型 2:使用 Magento CLI
启用显示字段路径和复制路径按钮: bin/magento config:set 'anasstouaticoder_dev/system_config/system_path_hint 1'
启用复制值按钮: bin/magento config:set 'anasstouaticoder_dev/system_config/system_field_value 1'
启用显示子作用域覆盖值: bin/magento config:set 'anasstouaticoder_dev/system_config/system_override_values 1'
规格
此插件提供了一种轻松复制配置字段路径或其值到剪贴板的方法。它还显示在子作用域网站或模态中配置的所有值。
对于复制值和显示模态部分中的子值,两种都支持以下字段类型: 文本、文本区域、选择和多重选择
使用方法
此插件背后的想法是让管理员和开发人员的生命变得更加轻松,而不是让他们在页面 DOM 中使用检查工具或项目文件中搜索,该插件为他们提供了配置路径和复制按钮到剪贴板的快捷方式。查看插件 wiki