CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal View that shows CiviCRM contacts
Pages: [1]

Author Topic: Drupal View that shows CiviCRM contacts  (Read 792 times)

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Drupal View that shows CiviCRM contacts
March 08, 2013, 01:27:39 pm
I have created a Drupal View that shows CiviCRM Contacts. While the View mainly works it has some issues that I can’t quite figure out.

I’m using it to show some standard CiviCRM fields such as ‘First Name’ and ‘Last Name’ and it’s working fine for that. I’m also using it to show some custom fields that I’ve placed in a Profile. When I go to Views > Fields sometimes that profile is listed and sometimes it’s not. If it’s not then the Fields all show ‘broken handler’. I flush the cache (sometimes numerous times) and the Profile is there and the Fields work and the ‘broken handler’ error goes away. All of the other Profiles that I’ve created are always there, this one is not and I have no idea why that’s the case.

I also have a lot of filters set up on this View as exposed as it’s a directory and I want the user to be able to search on first name, last name, and some of the custom fields that I’ve set up. All that seems to work well. One of the filters that I’m using is not exposed and it filters on a CiviCRM group as I only want members of that group to show up in the directory. This seemed to have worked at one time but now if I remove someone from that group they still show up in the View and even when I remove the contact record from CiviCRM, remove it from the Trash, and flush the cache, the record still shows up in the View yet the record does not exist anywhere that I can find. This is rendering the View almost useless and I can’t get these old contacts out of it. Any suggestions?

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Drupal View that shows CiviCRM contacts
March 08, 2013, 01:51:39 pm
Hi

Firstly I would avoid using the term 'Profile' here as it doesn't really apply. Custom Fields are in Custom Field Groups - and can also be used/exposed in Civi Profiles but you don't see the 'profiles' in Drupal - only the Custom Groups: Fields
Not sure if that helps or not.

Second thing, Views used to be checking standard Groups directly but now may be checking the cached group table.

To test, in civi run Adv Search for the group in question, then see if the results in Views gets updated - if it does, it means that using Adv Search updated the group cache table - and hence Views has access to more up to date info.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal View that shows CiviCRM contacts

This forum was archived on 2017-11-26.