Allow month-based date_list on archive_index
|Reported by:||anonymous||Owned by:||David Tulig|
|Severity:||Normal||Keywords:||date_list month generic view|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
I was trying to create a blog index, similar to the Django weblog, which has a Month and Year archive sidebar.
I figured the correct thing to use was the archive_index generic view, but the date list only gives me years.
I can almost see the reason for this, as archive_index would drill down to archive_year, but it's rare that you would list the years first except for very long-running blogs.
I propose a new argument to archive_index of "date_list_period" which can be 'year' (default) or 'month'.
Change History (20)
comment:3 Changed 9 years ago by
|Owner:||changed from nobody to David Tulig|
Changed 8 years ago by
comment:9 Changed 6 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Ready for checkin → Accepted|