anasstouaticoder/magento2-module-sitemapremoveitem

SitemapRemoveItem 模块提供了一种简单的方法,可以从 Magento 2 站点地图中移除不需要的元素

1.3.9 2024-05-27 08:12 UTC

This package is auto-updated.

Last update: 2024-09-20 02:00:46 UTC


README

Magento 2 模块 AnassTouatiCoder SitemapRemoveItem

根据它们的 URI 移除不需要的 Sitemap 项目

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - Yes
``anasstouaticoder/magento2-module-sitemapremoveitem``

主要功能

提供移除不需要的 Sitemap 行的简单方法。

安装

* = 在生产环境中,请使用 --keep-generated 选项

使用 composer 2 安装

  • 在 Magento 项目根目录下运行命令 composer require anasstouaticoder/magento2-module-sitemapremoveitem
  • 通过运行 php bin/magento module:enable AnassTouatiCoder_SitemapRemoveItem 启用模块
  • 通过运行 php bin/magento cache:flush 清除缓存

压缩文件

  • 将压缩文件解压到 app/code/AnassTouatiCoder
  • 通过运行 php bin/magento module:enable AnassTouatiCoder_SitemapRemoveItem 启用模块
  • 通过运行 php bin/magento cache:flush 清除缓存

配置

转到 Store => 配置 => 部分 Atouati Tools 添加将从 Sitemap 中移除的项目

规格

此插件使管理员能够清理 Sitemap 中不需要的 URL 行。

查看演示

用法

在后台办公室,转到 Store => 配置 => ATOUATI TOOLS => 通用 => 从 Sitemap 中移除的 URL。

将不需要的 URI 添加到表中并保存。确保选择您需要的 URI 匹配类型:包含移除一个或多个,等于移除一行)。

  • 用例 1: URI => women/tops-women URI 匹配类型 => 包含
  • 用例 2: URI => men/bottoms-men/pants-men.html URI 匹配类型 => 等于

许可证

MIT