Community Documentation

Views Support

Last updated April 28, 2009. Created by mradcliffe on April 28, 2009.
Edited by sirkitree. Log in to edit this page.

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...

Page status

About this page

Drupal version
Drupal 6.x
Audience
Documentation contributors, Site administrators, Themers

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here