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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • When NOT use contact sub-type?
Pages: [1]

Author Topic: When NOT use contact sub-type?  (Read 759 times)

andregurgel

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 3.3.3
  • CMS version: Drupal
  • MySQL version: Mysql
  • PHP version: Php
When NOT use contact sub-type?
January 26, 2011, 08:52:11 am
In my NGO, I'm thinking of using a Volunteer Individual's sub-type, just because the volunteers need custom fields (days/hours available per week).

In my understanding, a decision to create Contact Subtype could be based on the fact that it will need custom fields not present in the original Individual record.

Volunteers, Board members, Teachers all have different custom fields. What I want is a Add/Edit form that shows only the fields particular to a given type of individual.

I've read that a "better" way is to categorize them as Groups, since a given individual can be moved among them or belong to many at once.

If I do employ Groups in this case, how can I create a form that can offer all the custom fields selectively? Using Profiles?

But what if a, say, volunteer also becomes an employee of an organization?

For what I've learned in the forum, once you create a contact sub-type you can't change the individual's sub-type. I know that someone achieved it by way of merging contacts though the GUI.

The CiviCRM manual (I read it end-to-end) is a kind of obscure in this regard.

Any advice?

Thanks
Andre


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: When NOT use contact sub-type?
January 26, 2011, 11:20:21 am

the main restriction about contact subtypes are:

* No easy way to change a subtype (and there is some potential data loss here if there are values in custom groups for the specific old subtype)
* A contact cannot have multiple subtypes (though there is an MIH for this:http://civicrm.org/mih#multi_subtypes)

Groups solve the above two issues. But you'll need to implement the show "custom groups" for an individual based on what group they are in via a hook. For an example check:

http://svn.civicrm.org/sfschool/branches/v3.2/drupal/sfschool/sfschool.module, function sfschool_civicrm_tabs

where i hide some tab based groups based on a custom field

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: When NOT use contact sub-type?
January 27, 2011, 01:28:31 am
I know this doesn't work for everyone, but one combination we have used is to treat Volunteering as an 'event' even if that event is for a whole year- reason being that by doing it as an event is that you can then create something of a history of what people have offered to do. Nothing worse than doing a search for volunteers and having little idea as to whether what they offered to do 2 years ago is still relevant - and this way you get the fields related to the 'participant' not the contact - just a thought
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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: When NOT use contact sub-type?
January 27, 2011, 05:51:58 am
Hi,

In the "there is more than one way of doing it" spirit, we use memberships for volunteers.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • When NOT use contact sub-type?

This forum was archived on 2017-11-26.