I am setting up a view that provides archives by year. I have applied an argument to a CCK date field (set up as a select list, custom input format of F Y, granularity set to month and year). The argument granularity is set to year and it returns a summary list when arg not present.
My problem is that the view lists the years multiple times in the summary (both on the page and block displays) - once for every month that has records (e.g. if records exist for May, June and July of 2006 the view returns a summary with 2006 listed three times, showing record counts corresponding to the various months). All the (multiple) summary links actually bring back the entire record set for the year (i.e. not just for one month. So it seems like the year granularity is applied correctly when the argument is passed but not when generating the summary list (i.e. arg not present)?
Am I missing some views/argument setting here? Or can I not generate year-level archives from a CCK month-year date field?
I am running Drupal 6.8 with the latest Views dev snapshot (and initially tried this with Views 2.2) and CCK 6.x-2.1.
Thanks.
Comments
Comment #1
rhache commentedI also get this error: when doing an argument summary for a date field with year selected for granularity, I get a year for every month. For example, your result might look like this if you had date fields for both January and February 2009:
- 2009
- 2009
However, I'm pretty sure bug the bug originates with the date module. I did some testing and tried and argument summary for node:created date and that worked fine. After looking at the date issue queue, this may be a duplicate of the following issue: http://drupal.org/node/307256
Sincerely,
Rene
Comment #2
drewish commentedi think you're right.