As discussed at the Drupalcon Chicago sprint, formatting of event dates could really use improvement.
lisarex and I discussed using meetup.com as a potential benchmark. The first attachment is a calendar icon that describes a user's attendance. The second attachment shows the dates on the event page.
We discussed using the first example as model for node teasers and the second for full node views. I've started with the first, but I think it may be a fine choice for both versions. I also wrote a formatter to show the organizer user reference field as a comma separated list. This is shown in the third attachment.
I had an idea for the year of the event, which is to only display the event year if it is different than the current. This is done via CSS (.this-year, .other-year) and is shown in the fourth attachment.
Comment | File | Size | Author |
---|---|---|---|
#5 | 1090538-groupsorg-5.patch | 3.04 KB | c4rl |
#4 | gdo-event2.png | 76.63 KB | c4rl |
gdo-event-year.png | 36.8 KB | c4rl | |
gdo-event.png | 100.26 KB | c4rl | |
meetup-example-2.png | 176.85 KB | c4rl |
Comments
Comment #1
drummLooks good. Time zones?
Comment #2
c4rl CreditAttribution: c4rl commentedGood call, I'll make sure timezone data gets added back in.
Comment #3
lisarex CreditAttribution: lisarex commentedThanks C4rl! The calendar version looks good. Very definitely stands out in a sea of text :)
Do we need an end time in the text version? And AM/PM?
Comment #4
c4rl CreditAttribution: c4rl commentedAdded timezones, AM/PM, and end time.
I believe locale doesn't support regional date formats in d6, so hopefully this format is universal enough for now.
Comment #5
c4rl CreditAttribution: c4rl commentedI realized I never posted the patch :)
Comment #6
basic CreditAttribution: basic commentedMoving to the proper queue
Comment #7
lisarex CreditAttribution: lisarex commented