integer-net / magento2-german-umlaut-urls
自动在URL中正确转换重音符号 ("ä" => "ae" 而不是 "a")。
1.1.1
2020-05-15 13:40 UTC
Requires
- php: >=7.1.0
- magento/framework: >=100.0.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-16 01:42:50 UTC
README
目的
当创建URL时,自动适应常见的德语重音符号。例如,ä 变成 a,尽管通常使用额外的 e 来解释重音符号,在这种情况下 ä 变成 ae。此模块解决了这个问题,并在URL中正确转换重音符号。
限制
此模块仅影响自动生成URL时的URL生成,即在创建新产品/分类/ CMS页面时,如果“URL密钥”字段留空,则从名称生成URL密钥。它不会影响现有的产品/分类/ CMS页面,因为它们的URL密钥已经生成。
安装
- 通过composer安装
composer require integer-net/magento2-german-umlaut-urls
- 启用模块
bin/magento setup:upgrade
配置
不需要配置。
测试
Magento集成测试
-
在
dev/tests/integration/etc/install-config-mysql.php
中配置测试数据库。在Magento文档中了解更多。 -
将包中的
Test/Integration/phpunit.xml.dist
复制到您的Magento安装中的dev/tests/integration/phpunit.xml
。 -
在Magento根目录下运行
bin/magento dev:tests:run integration
致谢
许可
MIT许可证(MIT)。有关更多信息,请参阅许可文件。