Modular Columns in Manage Playlist Files
| Project: | Playlist (toolkit, modules) |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
At the moment, the "Manage Playlist Files" columns automatically display ID3 tags extracted by the Audio node, which could be the default.
But it would be nice to make this modular by being able to control which columns are displayed or not. This specifically applies to creating playlists with other types of nodes where it would be possible to chose which fields to display in the columns.
One example could be the flexinode fields that are marked with the show_table flag -- or whatever the equivalent CCK fleid show_table flag will be.
Look to the flexinode code to see how the columns in the tables are dynamically displayed.
if ($field->show_table) {$header[] = $field->label;}
if ($field->show_table) {$row[] = $data ? $data : '';}
Or you could make this internal to the playlist module, having an admin user interface for which columns to display for different node types.
Here are some screenshots of the columns that I will need to use for the playlist module. Notice that the columns are also displayed when a node is activated within a playlist, which might be nice for other node types.

#1
This no longer applies since I've replaced the table with a search function. This way you can define a new node type, such as a Final Cut Clip, and invoke hook_search for that node type. Then, the playlist can search files that match and add them to the playlist. To see a working example, go to http://playlist-demo.drupalart.org
I've also cleaned up the interface quite a bit and fixed a few other things.
Farsheed
#2
Thanks Farsheed. I'll take a look at where you're at with it.