symedit/sitemap-bundle

There is no license information available for the latest version (v0.11) of this package.

Sitemap generator for entities in Symfony

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.11 2015-09-23 20:44 UTC

This package is auto-updated.

Last update: 2024-03-24 08:41:25 UTC


README

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.