Closed (duplicate)
Project:
Views Or
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2011 at 18:33 UTC
Updated:
4 Nov 2011 at 13:34 UTC
I am trying to create a view based on fields from CiviCRM (civicrm.org), which has a pretty decent views module, but it appears that I can't use views_or in CiviCRM based views. I don't see Views Or as a filter option in my CiviCRM based view, but I can use it in other views.
I assume something would have to be changed at the code level to get views_or to work with CiviCRM based views. If someone can give me a push in the right direction, I would be happy to work on it. My questions are:
1. Does the change need to be made in the CiviCRM views module or the Views Or module?
2. What are the nature of the changes I would need to make?
Thanks for your help,
Q
Comments
Comment #1
qjensen commentedThis module is very well written and very flexible. I was able to modify the data_alter function to reflect the data in the CiviCRM view and it fit right in and worked perfectly.
I wonder if there is a way to generalize this out so it would work with non Drupal data that has been exposed to views from a custom module like CiviCRM?
Comment #2
Piyush commented@qjensen: Are you able to share what you did with the data_alter hook to get views_or working with CiviCRM?
Thanks!
Piyush
Comment #3
ZenLax commentedSubscribe - need CiviCRM view_or capability
Comment #4
netivajak commentedUsed this for Civicrm Contacts by changing the views_or_views_data_alter in views_or.views.inc so that each instance of $cache['node'] is now $cache['civicrm_contact']
No longer works for any other type (eg Node) views after this change but I'm going to worry about that another day...
Comment #5
darren ohDuplicate of #396340: filter doesn't show when using a view displaying items of type User or other types....