This is a request and ported patch to add granularity support for the date facet in D7. This was originally proposed for D6 by zerolab in issue.

Comments

jongagne’s picture

Status: Active » Needs review
StatusFileSize
new3.22 KB

Here is the ported patch, which was adapted from this patch.

nick_vh’s picture

Status: Needs review » Closed (won't fix)

Please use date_facets module for this

jongagne’s picture

Status: Closed (won't fix) » Needs review
StatusFileSize
new24.49 KB

As far as I can tell the purpose of the two modules is different. The date facet allows facets that filter content depending on a list of date ranges, and the proposed list allows the maximum depth (granularity) the dates can expand to. For example, the date range module does

http://drupal.org/files/project-images/date-range-facets_0.jpg

whereas the proposed patch allows the attached image (day granularity is selected). Without this patch, it goes down to the second, which is rarely desired. This functionality is useful for anyone using the date facets, and for that reason, there is value to add the functionality this module.

jongagne’s picture

Corrected an undefined constant

David_Rothstein’s picture

Status: Needs review » Closed (duplicate)

Closing as a duplicate of the original issue (#1952296: Add Date facet granularity support).