valantic-spryker / content-pages-sitemap-connector
Extends main Sitemap module to render content (CMS) page links
Installs: 1 347
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- valantic-spryker/sitemap: ^2.0.2
Requires (Dev)
- fond-of-codeception/spryker: ^1.0 || ^2.0
- phpstan/phpstan: ^1.11.0
- spryker/code-sniffer: 0.17.1
This package is auto-updated.
Last update: 2025-02-24 09:24:24 UTC
README
Description
This module is used alongside valantic-spryker/sitemap
Sitemap module to extend the sitemap with content page (CMS) URls.
Usage
composer require valantic-spryker/content-pages-sitemap-connector
- Since this is under ValanticSpryker namespace, make sure that in config_default:
$config[KernelConstants::CORE_NAMESPACES]
has the namespace$config[KernelConstants::PROJECT_NAMESPACES]
has the namespace
- Add
ContentPageSitemapCreatorPlugin
to\ValanticSpryker\Zed\Sitemap\SitemapDependencyProvider::getSitemapCreatorPluginStack
- Add
\ValanticSpryker\Shared\ContentPageSitemapConnector\ContentPageSitemapConnectorConstants::RESOURCE_TYPE
to\ValanticSpryker\Yves\Sitemap\SitemapDependencyProvider::getAvailableSitemapRouteResources
- Now the Sitemap will include published URLs of content pages.