Opened 14 years ago
Closed 13 years ago
#15829 closed New feature (fixed)
Provide item to sitemap template
Reported by: | Michael Manfre | Owned by: | Michael Manfre |
---|---|---|---|
Component: | contrib.sitemaps | Version: | dev |
Severity: | Normal | Keywords: | sitemaps |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
#14041 added the ability to provide a custom template for generating a sitemap. To extend upon that, exposing the item object to the template will allow a way to generate content specific sitemaps (Google News, video, etc) without needing to subclass Sitemap to duplicate most of get_urls.
This could make #10907 (Adding google news sitemap support to django.contrib.sitemaps) unnecessary.
Attachments (3)
Change History (6)
by , 14 years ago
Attachment: | sitemaps-item.diff added |
---|
comment:1 by , 14 years ago
Easy pickings: | unset |
---|---|
Needs tests: | set |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
Add "item" to url_info added to context.