Views Support

Last modified: April 28, 2009 - 17:24

The 1.x and 2.x branches of Activity include Views 2.x support.

Activity 1.x

With #335498: Views2 Integration, Activity 6.x-1.x integrates with Views. This includes creating your own views with specific activity fields and a row style plugin. Activity provides default views that include just the date and activity data per the row style plugin. However you can create a new view, and define the fields and filters you wish to include.

Serialized data field

The data field in Activity is a serialized field of data specific to an activity type such as node, user, or other types of activity. In order to include this field in a view you will need to also include other required fields such as Activity Id, Activity Module, Activity Created Date, Activity Operation, and the Activity Type. Without these fields views will only output the raw serial data. If you include these fields (you can exclude output), the tokenized data that you provided will be output in that field.

This only applies if you specify fields in a view, and not if you use the generic Activity Row Style Plugin.

Activity Row Style Plugin

To use the row style plugin, create a new Activity view (not a node view), and change the unformatted row style to use Activity instead of fields. That's it!

Activity 2.x

This section needs documentation...

 
 

Drupal is a registered trademark of Dries Buytaert.