Is there a way to customize (or otherwise improve) the way the playlist date is displayed when including it as a table field using Views? I'll be more explicit below.
I'm using Views 5x-1.6 to create a custom "tracker" table that uses a filter to display Program Playlist node type only. One of my options in the field list is Station Playlist: Date, but my complaint is that I do not like how the data is formatted for display in this field.
For a playlist with a date of September 25, 2007 (arbitrary example), it presently appears as:
25-9-07
...which in my opinion is not very user-friendly. I would much prefer something like:
9/25/07
...or better yet, the ability to choose from a few different options.
I considered using the Node: Created Time field that is built into the Views module, but this won't get the job done because the date the program aired could be different from the date the deejay posts the playlist.
Please help! The date looks quite lovely as it appears in the Playlist Title... and I just wish that I could get it to display consistently in "views".
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | station_playlist_178666.patch | 961 bytes | drewish |
Comments
Comment #1
drewish commentedgood catch. it's got a hard coded format string. the attached patch uses the playlist title setting that can be accessed from admin/settings/station/playlist
Comment #2
drewish commentedcommitted to DRUPAL-5 and HEAD
Comment #3
shawnc commentedForgive me, but do I just copy and paste that code anywhere into the file
modules/ station/ playlist/ views.inc ?
Comment #4
shawnc commentedOkay, I tried doing what I asked if I should do... I replaced the existing code with the new code, but I see no change. Help!
Comment #5
shawnc commentedNevermind-- I figured it out. Thanks for your help!
Comment #6
(not verified) commented