Skip to content

Sitemap

The underlying SyliusVendorPlugin can add vendor storefront URLs to your sitemap through the SyliusSitemapPlugin.

  1. Install the sitemap plugin (^3.0, compatible with Sylius 2.x):
bash
composer require stefandoorn/sitemap-plugin:^3.0
  1. Enable it in config/bundles.php:
php
<?php
// config/bundles.php

return [
    // ...
    SitemapPlugin\SitemapPlugin::class => ['all' => true],
];

That's it — the vendor plugin already registers its sitemap provider (Odiseo\SyliusVendorPlugin\SitemapProvider\VendorUrlProvider, tagged sylius.sitemap_provider), so once the sitemap plugin is installed and enabled, vendor storefront URLs are added to the generated sitemap automatically. No extra service import is needed.

Follow the original SyliusSitemapPlugin documentation for routing and usage.

by Odiseo