Needs review
Project:
XSPF Playlist
Version:
5.x-1.16
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2008 at 18:27 UTC
Updated:
12 Nov 2008 at 16:17 UTC
It would be good to provide the playlist view type as an argument as well as a view style type -- the same way Views has RSS as both a view type and an argument.
This would allow you to look at a view of nodes, and then also append /playlist to that view's URL to get the playlist.
I've been looking at how Views does this and it doesn't look too complex to implement -- can pretty much copy how views_rss.module does it.
Comments
Comment #1
joachim commentedAdd the following function to the XSPF module:
You can then have a regular view of nodes, teasers, tables, etc, and if the 'Node: Feed Selector' argument is present, 'playlist' gives you the XSPF.
Comment #2
arthurf commentedGreat idea. I will roll this into the next release. It might also make sense to switch around xspf/node/NID to node/NID/xspf so that this is consistent. We might also want to consider switching "playlist" to "xspf" in your example so it is more specific- playlist could mean many things I think.
Comment #3
arthurf commentedOk, I tweaked this around a bit, used "xspf" as the argument, and added the views_post_view() function which was necessary to get this to work, however, it is running on my dev site, so it should be worth testing at this point. Again thanks for the patch. It is great to get some help!
Comment #4
joachim commentedviews_post_view()? I've not added that to my version of this module and it works fine...
Having 'xspf' as the argument value, is clearer, yeah :)