Add more fields to playlist entry

tim.plunkett - June 21, 2009 - 15:50
Project:Station
Version:6.x-2.x-dev
Component:Playlists
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Not sure how closely related this is to #202352: Enhanced Playlist Statistics and Composer Field, but I want columns other than Artist-Title-Album-Label-Link. For example, Time Played (text) and New Track (checkbox), as well as being able to reorder them.

I have been manually adding them to the database and the module code for 5.x, but it got tedious when every update broke my patch, and I decided to bring this up before cobbling together a patch for 6.x.

Somehow opening this up to the user would be nice.

This may or may not be the time to ask about CCK/Views integration with the playlist. Thoughts?

#1

drewish - June 22, 2009 - 18:03

I agree that it'd be nice to allow the user some flexibility on this but I don't see an easy way to do so. CCK won't help until #196421: Deleting unwanted multiple values / multiple values delta issues and #119102: Combo field - group different fields into one get sorted out. I'm open to suggestions.

#2

drewish - June 22, 2009 - 19:36

I should add that while those patches have been committed they're in CCK's 3.x development branch and won't be in widespread use anytime soon.

#3

tim.plunkett - July 15, 2009 - 07:27
Status:active» postponed

Those were both interesting reads.
As you said, CCK 6.x-3x is a long way from readily used.

I have dreams of this being fixed. Scary.

#4

tim.plunkett - September 21, 2009 - 19:54
Status:postponed» needs work

I know I'm not supposed to hijack the issue like this, but it's rather urgent for me (aka last thing before my D6 site goes live).

I had hacked the station_playlist.module to allow myself to add a new field, which was a checkbox signifying a "new track".
Attached is that patch, sorry it's not against CVS.

When I went to go hack the D6 version, I realized a lot of the code had been pushed to Views, and have NO IDEA how to recreate this functionality.

Any help on this one?

AttachmentSize
station_playlist.patch 4.94 KB

#5

drewish - September 21, 2009 - 20:16

tim.plunkett, do you do IRC? hop into #drupal and we can talk through it.

 
 

Drupal is a registered trademark of Dries Buytaert.