Skip to content

[READ-ONLY] Adds sitemap.xml functionality to your Symfony2 Project

Notifications You must be signed in to change notification settings

symedit/SitemapBundle

Repository files navigation

SitemapBundle

Basic Setup:

symedit_sitemap:
    models:
        blog_posts:
            repository: symedit.repository.post
            method: findPublished
            route:
                path: blog_show_slug
                params:
                    slug: $slug
            changefreq: monthly
            lastmod: updatedAt
            priority: 0.6

Inside of the route params, or the route path you can prefix strings with a dollar sign ($). This will try to fetch the current models value. So using $slug would try to fetch the objects public property $slug, or try to fetch it via getSlug() using Symfony's PropertyAccess Component.

About

[READ-ONLY] Adds sitemap.xml functionality to your Symfony2 Project

Resources

Stars

Watchers

Forks

Packages

No packages published