Blogs

The scenario here is, for example, you are calling your Contacts and recording data via webform using webform_civicrm, and you are using a View to get your list of contacts. On that View you have a link adds the Contact ID (cid) in the url so that person's name etc will load up on the webform.

In this case we also want to have some other information about them, such as their Donation History.

To achieve this we need to build a View Block using a Contextual filter that looks for the contact ID in the url (and doesn't show anything if we do not have a cid available)

Posted by: peter.davis
05 November 2020

We did this a while back, and a question on StackExchange meant it was worth sharing.

Posted by: peter.davis
26 June 2019

 

This view has another View as a field using drupal views_field_view so there are two views attached. You will probably hit less problems if you import in this order

  1. recur latest contribution.txt
  2. recur_contribution.txt
Posted by: peter.davis
23 July 2018

When Drupal Users are created a CiviCRM record is automatically created. If those Users are spammers, and therefore need to be Blocked or Deleted, you are faced with the difficulty of getting rid of both their Drupal user and the related CiviCRM record.

To help us with this task and others related to "user and contact" problems we created a module (feature) that gives us some new toys to play with. It evens works on multisites (where you have multiple Drupal sites - or Domain sites - linked to one CiviCRM)

Posted by: peter.davis
28 February 2018

This summary explains how we are using webform to allow multiple people to be registered for multiple events - with each person registering for any variation of events

Webform ‘body’ holds info about events including prices with links to more info

 

User selects number of folk they are registering and Conditionals kick in to show the necessary fields

Posted by: peter.davis
07 December 2017

Per a request in StackExchanged I cloned this View and cleaned it up in case it could help in their use case.  The view ensures the block shows activities Assigned to the logged in user.

Posted by: peter.davis
13 June 2017

Quickly built this to provide an example view for this question on Stack Exchange. Obviously the relationship types may need resetting to match which relationships are required. They should have Individual as Contact A and Organisation as Contact B.

Posted by: peter.davis
16 November 2016

This came up as a question for a civi report that could provide a pivot table for contacts created each month v the Source field. Having done most of these bits for other use cases I wanted to confirm this would work here.

This View uses Aggregation feature in Views under Advanced and the Pivot Table module.

To get Aggregation working for Months the recipe I used was 

Posted by: peter.davis
26 May 2016

A question on StackExchange had me wondering if a View would provide a solution for showing Civi Memberships and OG Memberships so I put together a very simple proof of concept. 

Posted by: peter.davis
21 November 2015

A StackExchange question asked how to provide a link to whatever was the latest newsletter. Seemed like a good fit for a View so tried one out. Here is the file. if it helps, let us know.

Posted by: peter.davis
21 October 2015