When creating a program playlist for a particular day (e.g. 12th Apr 2007) the date appears in the playlist name as "4-12-2007". Can we choose from a list of different formats, e.g. 12/04/2007, 12th Apr, 2007, etc, like when you configure a date cck field in a content type. A custom date entry box would be really good! Again, the date cck field has this. Or at the very least can we have an option for a European style date (day-month-year)?
Cheers,
Stella
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | station_playlist_dates_135568.patch | 4.8 KB | drewish |
Comments
Comment #1
drewish commentedgood idea. here's a patch that should do it. please test it out and let me know if it meets your needs.
Comment #2
stella commentedthat works great, thanks for the quick turnaround!
Cheers,
Stella
Comment #3
drewish commentedyou're welcome! i'm all about feature requests that are simple and provide a functionality to a lot of people. flexible dates is a great one. i'll get this committed tomorrow.
Comment #4
stella commentedHi again,
So the date part of the patch is ready to be committed. However, some additional code changes crept into the patch and caused the addition of new playlists not to work. The section of the patch is:
It's because $node->program_nid isn't set for new nodes. Reverting this patch section, fixed everything again.
Cheers,
Stella
Comment #5
drewish commentedi'd rolled those changes in on purpose to move the code from _submit to _validate. i'll do some testing creating new playlists.
Comment #6
thumb commentedIs the playlist date field at all influenced by the sitewide date format? Can the format be altered through a theme with format_date()?
Comment #7
drewish commentedit doesn't use the sitewide date format because it includes time information, and the module only tracks the date so you'd get a 0:00 or 12:00 in each date string.
Comment #8
drewish commentedokay i fixed that bug and committed this to the DRUPAL-5 branch
Comment #9
dries commented