﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12347	Adds support to urllist.txt in django.contrib.sitemaps	afurlan	Jannis Leidel	"The Yahoo! Search Engine/Crawler [http://help.yahoo.com/l/us/yahoo/search/siteexplorer/siteexplorer-45.html supports some different types of sitemaps]. Because of that, I use to always have two types of sitemaps available in my sites: `sitemap.xml` and `urllist.txt`. While the first one (`sitemap.xml`) is supported by Django, the last one (`urllist.txt`) isn't, so I'm adding a patch that adds support to it in the `django.contrib.sitemaps` application.

My patch takes advantages of the current Sitemap framework and uses the same configuration of `django.contrib.sitemaps.views.sitemap` to create the `urllist.txt` file. Once you have your `sitemap.xml` configured:

{{{
    (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
}}}

you can add support to `urllist.txt` by just adding the following rule:

{{{
    (r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
    (r'^urllist.txt$', 'django.contrib.sitemaps.views.urllist', {'sitemaps': sitemaps}),
}}}

This patch is currently running on my blog: [http://blog.afurlan.org/sitemap.xml sitemap.xml] and [http://blog.afurlan.org/urllist.txt urllist.txt]."	New feature	closed	contrib.sitemaps	1.1	Normal	fixed	contrib, sitemaps, urllist		Design decision needed	1	1	1	0	0	0
