Drupal views rss feed not updating
Now that you have the $node variable at your fingertips, you can put any of the node content in the feed. I hope this isn’t too many unrelated things to make a clear example.
Now that you have your feed setup, you’ll see there’s nothing you can do with it.
But there is a Views function you can overwrite in to add more data to the output rows.
It’s one higher than the keys to the objects in the ‘results’ array (0,1,2,etc.) so just tell the function to get the array to be sent to the Views template, which I’ll get to now.
Views already has support for templates, but my complaint with its templates — like my complaint with much of Drupal — is that it gives you a half-finished template.
First, you add the new namespace to the Views RSS framework: Presto!
You now have a new namespace added to your RSS output, a channel element that you can provide the value for, and an item element that can have a Views field mapped to it.
So here’s how I was able to customize the RSS fields output by including the entire node in the RSS feed results.
If you want a tutorial on how to first setup an RSS feed, there’s a tutorial on creating a custom rss feed in Drupal.
If you need to provide updated information from your site to external consumers, RSS is generally the go-to standard you use.
It provides a well-defined and well-supported definition.
In order to use it, download and install the views_rss module and the views_rss_core (and optionally views_rss_dc) module.