fluent_pages.sitemaps

This module provides integration for the django.contrib.sitemaps module. This can be done using:

from fluent_pages.sitemaps import PageSitemap

sitemaps = {
    'pages': PageSitemap,
}

urlpatterns += [
    url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
]

The PageSitemap class

class fluent_pages.sitemaps.PageSitemap

The sitemap definition for the pages created with django-fluent-pages. It follows the API for the django.contrib.sitemaps module.

items()

Return all items of the sitemap.

lastmod(urlnode)

Return the last modification of the page.

location(urlnode)

Return url of a page.