Hi,
Excuse-me I'm French and I don't speak english very well...
I Would like to use this plugin, but I have 2 problem to use it...
The first :
The Feed Icon disapear... But I saw this at the beginning of my test...
I see in the source code that :
<div class="feed-icon">
<a href="/drupal6-testcck3/flux_offre_emploi"></a> </div>
But I see nothing on this views...
The second :
How could I configure the link fied ?
I have tested to add :
Node : Link as field and I put it on "Field Usage" in parameter.
But in XML File I have this in item :
<link><a href="/node/2">voir</a></link>
Also I must have :
<link>http://localhost/node/2</link>
I don't know how I could get the node url ?
Thanks by advance.
Bye
Comments
Comment #1
pydubreucq commentedExcuse me, for the feed icon this is the source code :
Comment #2
chungyc commentedRelated to the missing feed icon problem, is there any reason why the
attach_tofunction inviews_plugin_style_rss_fields.incshould not be identical to that inviews_plugin_style_rss.incfrom the Views module? I didn't see any reason it shouldn't be, so I copied it over. It seems to be working fine so far, but I'm worried that there is some huge breakage lurking on my site.Comment #3
chungyc commentedIf you want to add a link, then there is a workaround of rewriting a Node Nid field: rewrite the output like
http://localhost/node/[nid]Not quite the proper link I might want, but it should work.
Comment #4
rsoden commentedpydubreucq - have you tried using the global custom text field provided by views? you should be able to construct your link using the replacement patterns made available to you there. longer term, we need some better handling for common elements of RSS feeds like link and guid, related to this issue: http://drupal.org/node/589904
chungyc - there's no reason i can think of that your solution to the missing feed icon wouldn't work. i'll do some testing and make this fix when i can. changing the title and category of this case to reflect this.
Comment #5
sahuni commentedHi,
I too cannot get the feed icon on my display page. However, I selected that display attachment when configuring my feed display.
It's working if I use style feed RSS instead of RSS Feed - Fields.
When you test, you have the attachment icon?
Comment #6
sahuni commentedI add by myself the feed icon in footer of the view as :
<a href ="myfeedname" > <img src="/misc/feed.png" width=16></a>and it's working.
Still, I'd like to know why attachment is not working
Comment #7
chungyc commentedThe
attach_tofunction doesn't quite work, but using the same code from the Views module seems to fix it. At least I haven't had a problem with it so far. It has the additional benefit that it can tell web browsers and online aggregators that an RSS feed is associated with a web page, compared to just embedding a feed icon in the footer.Comment #8
beasley commentedI've got a similar problem. If I set the style to be 'RSS feed' I get an RSS icon in the address bar of Firefox. If I choose 'RSS feed -fields' and configure it the icon disappears in the content it's supposed to be attached to. And yet the feed is created fine. I can navigate to the xml file and see it. I tried putting the 'attach_to' function in but that threw an error.
I wasn't sure what 'the same code from the Views module' meant (#7) so tried throwing the whole views_plugin_style_rss.inc code from Views into the Views RSS equivalent. I still don't get an icon :o(
Comment #9
sahuni commentedSorry but finally I let it down
Comment #10
albert volkman commentedWhat he meant was to use this code (from views/plugins/views_plugin_style_rss.inc):
To replace the same function (attach_to, should be around line #25) in the views_rss/views/views_plugin_style_rss_fields.inc file.
Does that make sense? I can verify that it works for me as well.
Comment #11
beasley commentedThanks a lot for that! Yes, it makes sense and all is working now :o)
Comment #12
seanrHere is a patch that fixes this and also adds an option to display the feed icon in the attached links area instead of in $feed_icons in page.tpl.php.
Comment #13
gábor hojtsyOk, this is supposed to be the very basic functionality of this module, so if it does not even manage to call drupal_add_feed() at a single place, then we can consider this critical. I'm trying to use this to produce feeds for activity 2.x created views. It is working fine except I'm getting the empty feed image issue and no drupal_add_feed() call in the module results in no browser recognition of the feed on the page either. Let's get this in since multiple people confirmed it works.
Comment #14
jsenich commentedThis patch works for me as well.
Comment #15
jolidog commentedWorks for me too...
Comment #16
David Goode commentedI committed the one from the actual views RSS style plugin verbatim, IE without this new option. Why is that new option useful or necessary?
Thanks,
David
Comment #17
seanrDavid, the reason for my patch was that when you set it up as an attachment, it'd end up in $feed_icons, but in certain circumstances, you might not want that. In the case of data.ed.gov, if you go to the one of the two grant listing pages (either of the big buttons in the body of the homepage), you'll see a CSV button below the table listing all the applications. I wanted an RSS icon there too (since it makes sense to have the exportable format options in one place) but the current functionality won't allow that.
Comment #18
joachim commentedYou basically need this line:
$this->view->feed_icon .= theme('feed_icon', $url, $title);
at the same place as the drupal_add_feed().
Though I'm not sure what the design decision is to not show the RSS icon in the body of the page; particularly as now browsers such as Firefox no longer show it in the address bar.
Comment #19
maciej.zgadzaj commentedRemaining part of seanr's patch added to 6.x-1.x-dev.
Comment #19.0
maciej.zgadzaj commentedAdded missing
definition.