Select Feeds from Views that are Created using RSS Feed Selector Argument
| Project: | FeedBurner |
| Version: | 5.x-0.5 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
On my site, I have two feeds that are created off of views by using the Argument Type RSS: RSS Feed Selector. These do not show up on the Feedburner admin page as available to redirect. I found the code that builds the selection list, and I see where it only pulls views that are of the type view_rss. I can't remember why now, but there was a reason I couldn't use this option and had to go the argument route - is there any reason why the Feed URI from this style of view feed can't be redirected? I saw in the issue log that version 5.x-0.5 was supposed to add an option to manually add a feed - I can't seem to find this ... I would assume this would solve my problem and I wouldn't need the code for selecting view arguments.
Andy

#1
Ok, I think I have a fix that will take care of this - it is working so far on my site. There are actually two things I needed to do. First, I added the following code snippet to the function _feedburner_get_feeds():
//Add support for RSS Feed Arguments - Begin
if (module_exists('views_rss')) {
$result = db_query("SELECT v.url, v.page_title FROM {view_view} v, {view_argument} a WHERE a.type = 'rss_feed' and v.vid = a.vid");
while ($viewargs_feed = db_fetch_array($result)) {
$feeds[$viewargs_feed['url'] .'/feed'] = array('name' => $viewargs_feed['page_title']);
}
}
//Add support for RSS Feed Arguments - End
Once I did this, my feeds were listed on the Administer | Site Building | Feedburner List form. When I tried to add the the feed redirection, however, I got the following error:
"The specified local feed URI does not exist."
A search of the drupal.org site led me to an existing feedburner issue titled "Getting URI does no exist for rss.xml" that talked about commenting out a couple of lines in the admin_build_edit_validate(...) function. I only had to comment out one line to make it work, though -
//form_set_error('feed_uri', t('The specified local feed URI does not exist.'));
Andy
#2
Merging this issue into #261679: Views integration.