Closed (works as designed)
Project:
Activity Stream
Version:
6.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2010 at 11:24 UTC
Updated:
11 Oct 2010 at 20:11 UTC
Hello,
I have searched the issue queue but could not find any info, apologies if I am asking something that has been asked already.
I am trying to figure out how to display the original title/source from an RSS feed. Right now the source does not show up when a feed item is displayed. Instead my user name is listed: [user-name] posted [name of feed item]. I would like to have [name of source of RSS feed] posted [name of feed item].
I imagine this is quite easy with some theming but I cannot figure out where to start. Any suggestions much appreciated.
Best,
Gerben
Comments
Comment #1
Gerben Zaagsma commentedComment #2
Gerben Zaagsma commentedHaving looked a bit more into this there seems to be a more fundamental problem here: in most cases it is fine to display the username in an activitystream item. Obviously with RSS feeds $user is not the poster of a feed. Should there not be a separate module dealing with RSS feeds then?
I have also posted this on the Simplepie forums asking for help in parsing out the feed title. When I receive an answer or find out how it can be done I will post here.
Gerben
Comment #3
akalsey commentedThe purpose of the module is to aggregate the activity of an individul from various locations around the web. The rss import allows you to display your blog posts or items from sites that have a feed but aren't directly supported by the module.
"Username posted..." is exactly what the streaam should say.
If you want to pull in feed contents for feeds that you didn't post (to display news headlines for instance) there are other modules that do so. Feed API does. The Aggregator module in drupal core does.
Comment #4
Gerben Zaagsma commentedThanks for the reply. I guess I lost sight of the primary aim of activitystream, aggregating the internet activities of individuals.
The thing is that I use activitystream to build a news section on a topical website and it is also very well suited for that, since I need to pull in content from various sources. See here: http://yiddish-sources.com/latest-yiddish-news
I am aware of the Feeds and Aggregator module but if you want to aggregate content from various sources there is simply no competition for activitystream. I could use a Twitter widget to display tweets and aggregator for rss feeds and combine it all on one page styling it a bit. But activitystream is so much better for this. Anyway, I understand that using activitystream on my type of website is not its main purpose. But I would say that it is definitely useful for more than just personal streams :)
Comment #5
akalsey commentedSure, it CAN do that. It's just not what it's designed for, and I'm unlikely to add features that are for other use cases.
Comment #6
Gerben Zaagsma commentedYes, that's fair enough.
One question I wanted to ask. I am getting some way in getting this accomplished with the help from someone on the Simplepie forum. Basically we add this line in the feed module:
$activity['feed'] = $feed->get_permalink();
(similar to the line: $activity['link'] = $item->get_permalink(); )
and then call it to be displayed. However, while $activity->link works $activity->feed doesn't do anything. I suppose there is something to be added in the main activitystream module also? Could you perhaps point me in the right direction for this?
Many thanks and best,
Gerben
Comment #7
momper commentedis it possible to do an override without hacking the module to get the feed name and show it instead of the user?
thanks momper