Select Feeds from Views that are Created using RSS Feed Selector Argument

puzzlemaster - March 17, 2008 - 14:16
Project:FeedBurner
Version:5.x-0.5
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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

puzzlemaster - March 22, 2008 - 16:35

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

Dave Reid - December 12, 2008 - 22:46
Status:active» duplicate

Merging this issue into #261679: Views integration.

 
 

Drupal is a registered trademark of Dries Buytaert.