Update XSPF Views to Views 2

davexd - January 5, 2009 - 03:24
Project:XSPF Playlist
Version:6.x-1.0-alpha1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I've installed:
XSPF Playlist
&
XSPF Playlist CCK

I'm now trying to create a playlist feed in views, but I am not given any XSPF options, anywhere!

Am I missing something?

#1

arthurf - January 5, 2009 - 19:27
Title:No options in Views» Update XSPF Views to Views 2
Component:User interface» Code
Category:support request» feature request

The views module needs to be updated to Views 2 which has not happened yet. I will try to address this some time soon.

#2

davexd - January 5, 2009 - 22:16

@arthuf, thanks for the update. I certainly don't mean to pressure you, but I have a site to go live in about 3 weeks. I'll look for another solution unless you let me know otherwise. Thanks for your contribution :)

#3

honucreative - February 16, 2009 - 01:13

So this module doesn't work with 6.9 + Views 2?

#4

massimo.ferracini - March 3, 2009 - 09:10

I'm also interested in using this module with 6.10 with views 2...
when will it be updated??

#5

zapple - March 22, 2009 - 11:21

bump!

Any news on this module getting a full D6 release?

Cheers
Zap

#6

mrfelton - March 31, 2009 - 14:16

subs

#7

ridolfidesigns - April 2, 2009 - 14:52

I would be interested in this as well.

#8

mrfelton - April 7, 2009 - 16:49
Status:active» needs review

I have developed some rudimentary, untested views support. Patch attached. To use it, add a 'Feed' display to your view, and set the display style to 'XSPF Playlist'. You also need to set the row style to 'Node XSPF'. I took a lot of the code from the core Node RSS views support and striped out the stuff we don't need. Please give it a test drive.

I must point out that it's had very little testing, and has not been used outside of the way I'm doing things, so don't be surprised if it doesn't do what you expect! (I'm using upload.module to attach media to nodes, media_mover to transcode them and generate thumbnails, and xspf_playlist_node to build playlists from nodes (this views support depends on xspf_playlist_node to get playlist data out of the nodes).

There is no XSPF views filter yet... If xspf_playlist_node_items() is unable to make a playlist from a node, nothing is returned from that node in the feed.

AttachmentSize
xspf_playlist-views.patch 19.71 KB

#9

mrfelton - April 7, 2009 - 17:07

Bad patch... try with this one. I think you'll need to cd into the module directory and use patch -p1 < /path/to/patch.patch. (-p1 not the usual -p0)

AttachmentSize
xspf_playlist-views.patch 20.01 KB

#10

arthurf - April 7, 2009 - 19:32

Thanks very much for the patch! It's great to have people help out.

I'm of course in the midst of a pretty serious refactor of this module so it is a bit of a moving target. So, I've taken your module and will commit it to CVS today- I'm making a few changes here and there (adding tracks to the XML out for example) and introduced lots of cleanup in the node and thumbnail modules. Check out the dev version and let me know how things are going.

#11

mrfelton - April 7, 2009 - 20:13

updated patch - the last one output a slightly broken xml...

I now have this xml playlist working and fed to a player :)
http://crescentmedia.kirkdesigns.co.uk/channels/1

I have created a couple of other patches in the last couple of days... I expect your refactoring will render them obsolete, but if not, I'd be great to see them commited too ;)

AttachmentSize
xspf_playlist-views.patch 19.94 KB

#12

riyana56 - September 6, 2009 - 21:34

I do not have shell access, and I tried to manually install this patch but could not figure it out. Could you possibly provide a direct link to each file that was updated?

Thanks

#13

jsulmar - October 22, 2009 - 04:12

I see that xspf_playlist-views.patch seems to be included in XSPF Playlist 6.x-1.0-alpha2. With alpha2 I'm trying to create a view following instructions in comment #8. When I try to add a feed display, I can set style=XSPF Playlist, however the Row style indicates "Missing style plugin". How can I enable the Node XSPF row style?
Thanks for any advice you can provide.

#14

kirbaranov - October 28, 2009 - 15:20

Same things like #13...

#15

kirbaranov - October 28, 2009 - 15:53

All works fine!
http://drupal.org/node/314097 - click Options, clik Update and warning disappeared. It works for me.

 
 

Drupal is a registered trademark of Dries Buytaert.