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.

Comments

skullJ’s picture

You can only add as Filters in Views: Add Filter ->> "Node: Type" >> "Is one of" >> "Activity Stream Item"

akalsey’s picture

Title: Pull Certain User Feeds Into A View » Add views support
Assigned: Unassigned » akalsey
Category: support » feature

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.

skullJ’s picture

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?

IncrediblyKenzi’s picture

Status: Active » Needs review
StatusFileSize
new1.72 KB

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.

IncrediblyKenzi’s picture

StatusFileSize
new2.45 KB

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.

IncrediblyKenzi’s picture

StatusFileSize
new8.58 KB

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.

IncrediblyKenzi’s picture

Version: 5.x-1.0-beta3 » 5.x-1.1

Bumped version to 5.x-1.1

akalsey’s picture

StatusFileSize
new8.31 KB

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

spiffyd’s picture

Version: 5.x-1.1 » 6.x-2.x-dev

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.

akalsey’s picture

Version: 6.x-2.x-dev » 5.x-1.1
Status: Needs review » Fixed

The patch is for 5.x and therefore is unlikely to apply cleanly to the 6.x branch.

akalsey’s picture

Status: Fixed » Closed (fixed)

In 5.x-1.2 and 6.x beta 1

geodaniel’s picture

Status: Closed (fixed) » Needs work

Great to see this getting included. It looks like you've accidentally missed out the activitystream_views.inc file from the CVS commit though.

geodaniel’s picture

StatusFileSize
new7.47 KB

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.

geodaniel’s picture

Status: Needs work » Fixed

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.

akalsey’s picture

Status: Fixed » Closed (fixed)