I was just wondering if anyone out there has looked into creating a date facet module based on the date module? I would if I could but it would be nice to search by, for example, starting date of an event.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | date_facets.module.zip | 3.36 KB | jpp |
Comments
Comment #1
David Lesieur commentedYes, see CCK Facets.
Comment #2
jpp commentedHowever it's not very useful due to no timezone support
Comment #3
fletch11 commentedThanks David. I don't need timezone support so this is perfect.
Comment #4
David Lesieur commented@jpp: Help is welcome to develop the module further. :-)
Comment #5
jpp commentedI'm slammed with work however I did hack timezone support a while back
basically I added a call to the get_timezone code in date_authored_facet (why re-invent the wheel :-)
and then added "+ $timezone" to all the places where a date is being added to the query
There are about 20 similar lines - I'd send a patch but my hacked version is 2 revs back from the current dev and I don't have time to untangle the changes.
Hacked file attached - use extreme cautuon it's not the current version
Comment #6
David Lesieur commented@fletch11: Sorry, your issue has been hijacked. :-)
Comment #7
fletch11 commentedNo problem... I welcome the assault.
Comment #8
Brn commentedI don't know if that can help, but we met problems of timezone on our site and found this solution :
http://drupalfr.org/forum/support/developpement/27462-cck-date-et-cck-fa...
Thank you for your work, this is a very useful module!
Brn