Closed (outdated)
Project:
Views Bonus Pack
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2006 at 23:00 UTC
Updated:
8 Mar 2023 at 20:28 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedThis might be an interesting future feature, tho I'm not sure how it'd work since the translation from a field to an RSS item is not quite straightforward.
Comment #2
Egon Bianchet commentedI was thinking about something like putting the first field in the RSS item title, and the others in the body like a simple definition list.
I'm not sure if it would be better to make two distinct view types, ie "Views RSS: Standard RSS feed" and "Views RSS: Custom RSS feed", or making it work trasparently in case some field was added.
Comment #3
merlinofchaos commentedIt would need to be a different plugin type to function. I'd like to see a real use-case where something like this would actually be beneficial. At the moment I'm not certain that it would.
Comment #4
Egon Bianchet commentedIt would allow the creation of feeds for all those entities attached to nodes that aren't nodes themselves, like comments, files, taxonomy terms, users, etc. replicating the functionality of modules like Comment RSS and Admin RSS, but allowing for more flexibility.
Comment #5
merlinofchaos commentedOk, I am convinced of the utility.
I don't have the bandwidth to do it; it'd make a nice plugin for the bonus pack or maybe even all by itself.
Comment #6
moshe weitzman commentedcould someone post some sample XML for comment RSS or uploads so we can get a feel for whats imagined here? ideally, you will also lis tthe Fields that active in the corresponding View. I think I get it, but want to confirm.
Comment #7
Egon Bianchet commentedComment #8
lyricnz commentedAnd another example, with a file-enclosure constructed from a textfield that contains a URL. Actual node attachments are basically the same (see upload_nodeapi())
I got this working by adding the fields in hook_nodeapi (see http://drupal.org/node/104875#comment-212259), but it would nice to be able to do this in the UI.
Comment #9
cpill commentedA used case for this in the case of Flash widgets. I want to create an RSS view of an image gallery so I can feed it to a Flash image rotator (http://www.jeroenwijering.com/?item=Flash_Image_Rotator). I also need to do this for MP3s in the near future and can think of other cases where it would be invaluable:
- podcasting
- torrent servers
- etc
Basically, being able let to represent any collection of a node type as a specialised RSS feed should be in core as RSS is where its all going. I've looked around and think that, in the combination with the power of views, could open Drupal up int a whole new world of uses.
I will have to hack it in the short term but it should certainly be useful to have a standard way to do this in the long run via the UI perhaps.
Comment #10
cpill commentedA used case for this in the case of Flash widgets. I want to create an RSS view of an image gallery so I can feed it to a Flash image rotator (http://www.jeroenwijering.com/?item=Flash_Image_Rotator). I also need to do this for MP3s in the near future and can think of other cases where it would be invaluable:
- podcasting
- torrent servers
- etc
Basically, being able let to represent any collection of a node type as a specialised RSS feed should be in core as RSS is where its all going. I've looked around and think that, in the combination with the power of views, could open Drupal up int a whole new world of uses.
I will have to hack it in the short term but it should certainly be useful to have a standard way to do this in the long run via the UI perhaps.
Comment #11
joachim commentedI've just written a views style plugin that does this.
Field labels are used to make the XML elements.
Labels "title", "body", "link" are special and used to make the title, link, description in the XML.
Could do with a validator to check that that those three labels exist.
Comment #12
wundo commentedComment #13
gausarts commentedA very old thread and still survives. Subscribing. Thanks.
Comment #14
ccshannon commentedsubscribe
Comment #15
vitis commentedsubscribing
Comment #16
kitchen_man commentedI'm not sure if this is the correct thread to post this but, by putting together info from posts all over the place, I was able to add whatever fields from my node as elements in the RSS XML. The trick was to use the view templates for and RSS feed in Views. The trick, was that the variables available in the template are from the feed not the node but, the one thing that you do have is the node id which can be used to get the node as a variable which can then be used to inject whatever variables from the node you want. In my case, I created a template file called "views-view-row-rss.tpl.php" in my theme directory with the following content.
cheers
-Dan
Comment #18
arski commentedis this by any chance possible in D6 already? I doubt this will ever get committed to D5 anyway as that is pretty much dead now.
Comment #19
mstobbs commentedThe Views RSS module adds an RSS Feed - Fields option to the Styles attribute of a Feeds View. Very handy and no coding required.
http://drupal.org/project/views_rss
A tip: I had to make the guid field a full link rather than just a node id to make the read more link work in my RSS reader. Figured the reader would pick up the link field but it uses the guid instead.
Comment #20
neclimdul