Add views support
jonathanbloom - June 4, 2008 - 14:12
| Project: | Activity Stream |
| Version: | 5.x-1.1 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | akalsey |
| Status: | closed |
Description
I'm trying to figure out how to pull only certain activity stream feeds into my Recent Posts view. I can only select Node Type since Activity Stream doesn't categorize feeds if I'm not mistaken.

#1
You can only add as Filters in Views: Add Filter ->> "Node: Type" >> "Is one of" >> "Activity Stream Item"
#2
The module should add views support by adding the stream source. You can already do per-user views and per-node type views using the built-in node type and author filters in views.
#3
This kind of views the favicon missing and this is a huge problem.
Is there any way to add in list of activitystreams using views, activitystream_module's favicons?
#4
Here's a patch that adds a field and filter to Views for "Activity Stream: Source." This should get you going. Will work on the favicons in a separate issue.
#5
Updated: Added feed icon support as well as link to original item (both in views).
This is inclusive of the changes in the previous patch.
#6
Inclusive of previous patches; this one adds a view theme plugin called "Activity Stream" (ala table view) that will theme a view ala the normal activitystream theming functions.
It also provides a few default views for displaying digg, del.icio.us and twitter individually.
#7
Bumped version to 5.x-1.1
#8
I rerolled the patch with some style changes to the code to bring in line with Drupal conventions. I also changed the View theme plugin to use the theme_ function for the date header to bring it in line with 5.x-1.x-dev
#9
I get a failed patch to the latest dev.
patching file activitystream.module
Hunk #1 FAILED at 428.
1 out of 1 hunk FAILED -- saving rejects to file activitystream.module.rej
I assume patch doesn't work for 6.x at this moment. Please confirm.
#10
The patch is for 5.x and therefore is unlikely to apply cleanly to the 6.x branch.
#11
In 5.x-1.2 and 6.x beta 1
#12
Great to see this getting included. It looks like you've accidentally missed out the activitystream_views.inc file from the CVS commit though.
#13
Attached is a version of the include that I've built up from looking at the recent changelogs in CVS, if anybody wants to use the module in the meantime (just rename it to activitystream_views.inc). The default views and fields don't seem to appear in my views admin pages, however.
#14
Closing this ticket for the 5.x branch and have opened a new one for Views 2.x support in the 6.x branch at #300163: Views 2.x support. The API has changed quite dramatically.
#15