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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Sort Contacts by Address
Pages: [1]

Author Topic: Sort Contacts by Address  (Read 4316 times)

tajacobson

  • Guest
Sort Contacts by Address
January 23, 2009, 12:34:11 pm
I am using CiviCRM to organize and track door-to-door canvassing.  Right now I use OOCalc to sort and print walk lists .  It would be nice if sorting contacts by address was an option so that I can print walk lists directly from the component.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Sort Contacts by Address
January 23, 2009, 02:48:44 pm
I'm don't have much experience in this area, but I assume the "sorting by address" requires at a minimum storing the street name separately from the full address. We have the schema for this but no code has been implemented to do the parsing / storing / retrieving.

I suspect there are other issues like separating odd and even addresses, possibly incorporating geo-coding / coordinates, etc.

If this feature is important to you, a good start would be to spec out your requirements and the modifications needed to current CiviCRM behaviors in detail. You can post this here on the wiki:

http://wiki.civicrm.org/confluence/display/CRM/Voter+Management+and+Canvassing

... and then solicit feedback from the community. Finally, if you can gather some folks to help sponsor this functionality - that will help ensure it become part of the platform. You might want to search or "voter" and "canvass" on this forum to identify other folks who have interest in this area.
Protect your investment in CiviCRM by  becoming a Member!

tajacobson

  • Guest
Re: Sort Contacts by Address
January 23, 2009, 06:49:25 pm
Quote from: Dave Greenberg on January 23, 2009, 02:48:44 pm
I'm don't have much experience in this area, but I assume the "sorting by address" requires at a minimum storing the street name separately from the full address. We have the schema for this but no code has been implemented to do the parsing / storing / retrieving.

I suspect there are other issues like separating odd and even addresses, possibly incorporating geo-coding / coordinates, etc.

If this feature is important to you, a good start would be to spec out your requirements and the modifications needed to current CiviCRM behaviors in detail. You can post this here on the wiki:

http://wiki.civicrm.org/confluence/display/CRM/Voter+Management+and+Canvassing

... and then solicit feedback from the community. Finally, if you can gather some folks to help sponsor this functionality - that will help ensure it become part of the platform. You might want to search or "voter" and "canvass" on this forum to identify other folks who have interest in this area.

Thank you for the response.

In my opinion the minimum functionality is sorting a list of contacts by street number and this would actually be quite a powerful tool.  It's quite easy to work around the odd-even sorting.  Right now my contacts are in groups by street name so I don't need to sort street separate from house number.  I import contacts into each group using my initial source list which is a.csv file and so I can presort even-odd numbers before importing and mass tag the contacts as even or odd to allow searching on this tag.

Now of course the higher level functions you list like even-odd sort, geo-coding, as well as my dream of seeing an integrated survey design/response/data entry (maybe using profiles and custom data?) is the candy on the icing on the cake.

Unfortunately I have no coding skills so I don't know the work involved in adding an ascending-descending sort to the address column. All I can offer is my guess that sorting by address isn't much different than the ascending/descending sort by alphabet on contact names.  Is there a way to easily use the same code that sorts by name, city, state, zip, and phone #?

Regarding your other suggestions, I will move on this and see what happens.

tajacobson

  • Guest
Re: Sort Contacts by Address
January 23, 2009, 08:57:18 pm
...to quote a famous Alaskan... and also...if I wanted to start learning about coding for CiviCRM what would be some good books/websites to read?

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: Sort Contacts by Address
January 23, 2009, 10:03:05 pm

If you are not familiar with PHP, you might first want to get started there and familiarize yourself with PHP and OOP (object oriented programming). The main site is: http://php.net/

You can also start reading the CiviCRM architecture series at: http://civicrm.org/architecture/

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

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: Sort Contacts by Address
January 28, 2009, 01:28:15 pm
Quote from: Dave Greenberg on January 23, 2009, 02:48:44 pm
You can post this here on the wiki:
http://wiki.civicrm.org/confluence/display/CRM/Voter+Management+and+Canvassing
Wiki page seems to have gone and I note a new page at http://wiki.civicrm.org/confluence/display/CRM/Voter+Management where Troy says


Quote
Jan 23, 2008

Edited the topic by removing Canvassing to make this a topic only related to Voter Management.  Created a new topic headed solely Canvassing.  I do canvassing work that is not related to voter management and felt it would be beneficial to separate these topics.

Has this inadvertently removed the old page Dave was referring to somehow?
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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Sort Contacts by Address
January 28, 2009, 02:35:23 pm
Given that some folks are interested in BOTH canvassing and voter management, while others like Troy are just interested in Canvassing - I kept the 2 separate stub pages, but moved them both under a "Voter Management and Canvassing" parent page.
Protect your investment in CiviCRM by  becoming a Member!

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: Sort Contacts by Address
January 28, 2009, 03:32:28 pm
All good. Thanks for setting up the parent.
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

tajacobson

  • Guest
Re: Sort Contacts by Address
February 24, 2009, 03:33:51 pm
This will enable basic sorting by address:

/com_civicrm/admin/civicrm/CRM/Contact/Selector.php

Replace Line 695 with

array(
                  'name'       => ts('Address'),
                  'sort'       => 'street_address',
                  'direction' => CRM_Utils_Sort::ASCENDING,
                  ),

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Sort Contacts by Address

This forum was archived on 2017-11-26.