kunstmaan/sitemap-bundle

A sitemap bundle to generate a sitemap for your Kunstmaan bundles website based on its Nodes

Installs: 99 826

Dependents: 1

Suggesters: 0

Security: 0

Stars: 10

Watchers: 17

Forks: 1

Type:symfony-bundle

7.1.2 2024-03-31 20:24 UTC

This package is auto-updated.

Last update: 2024-11-01 22:22:05 UTC


README

Build Status Total Downloads Latest Stable Version Analytics

The KunstmaanSitemapBundle adds a sitemap to your website. it will generate a sitemap recursively from all the children of the top nodes.

Installation instructions

composer.json

    "require": {
        "kunstmaan/sitemap-bundle": "*"
    },

AppKernel.php:

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Kunstmaan\SitemapBundle\KunstmaanSitemapBundle(),
            // ...
        );

routing.yml

# KunstmaanSitemapBundle
KunstmaanSitemapBundle:
    resource: "@KunstmaanSitemapBundle/Resources/config/routing.yml"
    prefix:   /{_locale}/
    requirements:
        _locale: "%requiredlocales%"

Use

Once installed, you will be able to view the generated sitemap XML on the '/en/sitemap.xml' route.

Documentation

The bundle comes with a generated XML and its own sitemap page you can add to your website, for more information, check our the more detailed documentation.