andkirby / mage-config-set
用于导入配置的 Magento 模块。
v1.0.0
2015-06-22 09:41 UTC
Requires
- magento-hackathon/magento-composer-installer: ~2.0@stable||~3.0@stable
This package is auto-updated.
Last update: 2024-09-20 02:22:17 UTC
README
Magento 扩展,用于导入系统配置参数。
版本: 1.0.0
Composer 安装
$ composer require andkirby/mage-config-set:~1.0@stable
功能
请使用路径找到模块功能
Admin Panel > System > Configuration > Developer > Configuration Importing
导入配置文件
您可以使用 CSV 文件导入配置。
系统配置中的路径
Developer > Configuration Importing > Upload configuration CSV file
CSV 文件格式
简单格式: xpath,value
。
示例
web/seo/use_rewrites, 1
web/cookie/cookie_lifetime, 360000
admin/security/use_form_key, 0
admin/security/session_cookie_lifetime, 900000
dev/debug/profiler, 1
警告:请小心上传配置文件,因为错误的配置可能会损坏您的 Magento 实例。
显示配置节点的 XPath
您可能会发现显示配置中的 XPath 很有用。可以通过启用选项来实现
Developer > Configuration Importing > Show Configuration XPath
注意:此选项只会在管理员会话中保存,因为
- 它可能会过度加载配置页面加载,
- 其他管理员用户。