valantic-spryker/content-pages-sitemap-connector

Extends main Sitemap module to render content (CMS) page links

2.0.0 2025-01-06 11:04 UTC

This package is auto-updated.

Last update: 2025-01-06 11:05:26 UTC


README

Description

This module is used alongside valantic-spryker/sitemap Sitemap module to extend the sitemap with content page (CMS) URls.

Usage

  1. composer require valantic-spryker/content-pages-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 ContentPageSitemapCreatorPlugin to \ValanticSpryker\Zed\Sitemap\SitemapDependencyProvider::getSitemapCreatorPluginStack
  4. Add \ValanticSpryker\Shared\ContentPageSitemapConnector\ContentPageSitemapConnectorConstants::RESOURCE_TYPE to \ValanticSpryker\Yves\Sitemap\SitemapDependencyProvider::getAvailableSitemapRouteResources
  5. Now the Sitemap will include published URLs of content pages.