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

skullJ - June 8, 2008 - 14:32

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

#2

akalsey - July 22, 2008 - 20:29
Title:Pull Certain User Feeds Into A View» Add views support
Category:support request» feature request
Assigned to:Anonymous» akalsey

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

skullJ - July 30, 2008 - 01:43

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

acstewart - August 6, 2008 - 19:59
Status:active» needs review

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.

AttachmentSize
activitystream_views.patch 1.72 KB

#5

acstewart - August 6, 2008 - 21:51

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.

AttachmentSize
activitystream_views_r1.patch 2.45 KB

#6

acstewart - August 7, 2008 - 01:34

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.

AttachmentSize
activitystream_views_r2.patch 8.58 KB

#7

acstewart - August 7, 2008 - 01:35
Version:5.x-1.0-beta3» 5.x-1.1

Bumped version to 5.x-1.1

#8

akalsey - August 7, 2008 - 04:42

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

AttachmentSize
activitystream_views_r3.patch 8.31 KB

#9

spiffyd - August 15, 2008 - 19:04
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.

#10

akalsey - August 16, 2008 - 06:59
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.

#11

akalsey - August 16, 2008 - 19:35
Status:fixed» closed

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

#12

geodaniel - August 18, 2008 - 16:20
Status:closed» 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.

#13

geodaniel - August 19, 2008 - 10:16

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.

AttachmentSize
activitystream_views.txt 7.47 KB

#14

geodaniel - August 26, 2008 - 15:25
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.

#15

akalsey - September 7, 2008 - 19:57
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.