定制 valantic-spryker/category-sitemap-connector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

valantic-spryker/category-sitemap-connector

最新稳定版本:1.0.0

Composer 安装命令:

composer require valantic-spryker/category-sitemap-connector

包简介

Extends Sitemap module with category urls

关键字:

README 文档

README

Description

This module is used alongside valantic-spryker/sitemap Sitemap module to extend the sitemap with category URLs.

Usage

  1. composer require valantic-spryker/category-sitemap-connector
  2. Since this is under ValanticSpryker namespace, make sure that in config_default:
    1. $config[KernelConstants::CORE_NAMESPACES] has the namespace
    2. $config[KernelConstants::PROJECT_NAMESPACES] has the namespace
  3. Add CategorySitemapCreatorPlugin to \ValanticSpryker\Zed\Sitemap\SitemapDependencyProvider::getSitemapCreatorPluginStack
  4. Add \ValanticSpryker\Shared\CategorySitemapConnector\CategorySitemapConnectorConstants::RESOURCE_TYPE to \ValanticSpryker\Yves\Sitemap\SitemapDependencyProvider::getAvailableSitemapRouteResources
  5. Now the Sitemap will include published URLs of categories.

Testing

Tests do not work without Spryker environment, since Spryker helpers are used. To run tests, execute following command in root Spryker directory:

codecept run -c vendor/valantic-spryker/category-sitemap-connector/tests/ValanticSprykerTest/Zed/CategorySitemapConnector

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 7
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-12-03