Skip to content

valantic-CEC-Deutschland-GmbH/product-concrete-sitemap-connector

Repository files navigation

Product Concrete Sitemap Connector

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages