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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Views and address county...
Pages: [1]

Author Topic: Views and address county...  (Read 827 times)

martinplourde

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Views and address county...
June 23, 2010, 12:23:40 pm
Hi,

I'm using Drupal 6, CiviCRM 3.1.3 and Views2.

I want to know if somebody know how to add the address.county field into Views.  I realy need to add a filter on county field in my view.

Thanks!

Martin

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Views and address county...
June 24, 2010, 11:58:27 am

you might need to check and extend the code here:

drupal/modules/views/civicrm.views.inc

u'll need to add county field to the address fields in there (check around line 880)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

martinplourde

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Views and address county...
June 25, 2010, 05:42:23 am
Hi,

Tank you very much for the fast answer!  I saw the code and I understand what I have to do, it look very simple, i'll keep you posted about that.

I have an other question:  This file is part of CiviCRM and will be overwriten at the next update.  Do you have a suggestion to do the modification and prevent that I have to apply a patch eatch time I do an update of CiviCRM?

Thanks!

Martin

martinplourde

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: Views and address county...
June 25, 2010, 08:14:38 am
Hi Lobo,

I did the modification in drupal/modules/views/civicrm.views.inc and I also add two files for the field and filter handler in drupal/modules/views/civicrm/ .  Everything's working fine now!  But I still wondering on what I will do with that on the next update!

Thank you very much for your help!

Martin!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Views and address county...
June 25, 2010, 01:30:43 pm

can you please file an issue and attach your changes as a unified patch. We can merge your changes with  our views2 code base

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Views and address county...

This forum was archived on 2017-11-26.