staempfli/magento2-module-rebuild-url-rewrite

该软件包已废弃,不再维护。未建议替代软件包。

用于分类和产品的 Magento 2 重构 URL 重写

1.1.0 2018-09-06 11:10 UTC

This package is auto-updated.

Last update: 2020-09-16 11:58:52 UTC


README

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development. Build Status Codacy Badge Maintainability Test Coverage

该模块添加了一个 CLI,允许重建以下 URL 重写:`categories`、`products` 和 `cms-pages`。

安装

使用 composer 安装模块

composer require staempfli/magento2-module-rebuild-url-rewrite  

使用方法

重建所有内容。

bin/magento urlrewrite:rebuild categories,products,cms-pages  

仅重建分类

bin/magento urlrewrite:rebuild categories  

仅重建产品

bin/magento urlrewrite:rebuild products  

仅重建 CMS 页面

bin/magento urlrewrite:rebuild cms-pages  

仅重建特定分类

bin/magento urlrewrite:rebuild categories -c=25,26,27  

或产品

bin/magento urlrewrite:rebuild products -p=1,2,3  

仅重建特定店铺

bin/magento urlrewrite:rebuild categories -s=1,2  

任何组合都是可能的。

查看 --help 获取更多信息

bin/magento urlrewrite:rebuild --help  

要求

  • PHP: 7.0.x | 7.1.x
  • Magento 2.1.x | 2.2.x

支持

如果您对此扩展有任何问题,请在新 GitHub 问题上提出。

贡献

任何贡献都将受到高度赞赏。最好的代码贡献方式是在 GitHub 上发起一个拉取请求。

开发者

Marcel Hauri,以及所有其他 贡献者

许可

开源软件许可 ("OSL") v. 3.0

版权

(c) 2018, Stämpfli AG