valantic-spryker/product-concrete-sitemap-connector

Provides product concrete urls for valantic-spryker/sitemap module

dev-main 2024-04-04 10:46 UTC

This package is auto-updated.

Last update: 2025-01-03 16:39:42 UTC


README

Minimum PHP Version

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

Integration

Add composer registry

composer config repositories.gitlab.nxs360.com/461 '{"type": "composer", "url": "https://gitlab.nxs360.com/api/v4/group/461/-/packages/composer/packages.json"}'

Add Gitlab domain

composer config gitlab-domains gitlab.nxs360.com

Authentication

Go to Gitlab and create a personal access token. Then create an auth.json file:

composer config gitlab-token.gitlab.nxs360.com <personal_access_token>

Usage

1. Install package

composer require valantic-spryker/product-concrete-sitemap-connector

2. Update config_default.php file

Add the ValanticSpryker namespace in the following config keys:

$config[KernelConstants::CORE_NAMESPACES] = [
    // [...]
    'ValanticSpryker',
];
$config[KernelConstants::PROJECT_NAMESPACES] = [
    // [...]
    'ValanticSpryker',
];

3. Register ProductConcreteSitemapCreatorPlugin

Add ProductConcreteSitemapCreatorPlugin in:

\Pyz\Zed\Sitemap\SitemapDependencyProvider::getSitemapCreatorPluginStack

4. Register ProductConcreteSitemapConnectorConstants

Add ProductConcreteSitemapConnectorConstants::RESOURCE_TYPE in:

\Pyz\Yves\Sitemap\SitemapDependencyProvider::getAvailableSitemapRouteResources