Hi Seemant,

There's no single construct that would do all that for you. But there
are a few handy ways that you could consider:

1. Pass the distinct list of months in 'extra_context' to the generic
view date_based.archive_index and use that list in your template.

2. The generic view date_based.archive_year provides a date_list to
your template -- it's a distinct list of months for the year. It can be
used to build up a list on the right side panel.

3. Write a custom template tag to build up this list. I would
personally go with this one for its DRY benefits. This article covers
it very nicely:
(http://www.rossp.org/blog/2006/jun/23/building-blog-django-4/) It also
uses the same technique to show Tags on the right.

-Rajesh


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to