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) »
  • Adding non-built-in-derived contact types
Pages: [1]

Author Topic: Adding non-built-in-derived contact types  (Read 712 times)

Ingmar

  • Guest
Adding non-built-in-derived contact types
July 16, 2010, 06:07:29 am
I would like to use CiviCRM to manage a canine club with its members, groups and events. But of course also with the dogs. Now I can derive a dog from the built-in individual type, but that doesn't make too much sense (address, employee, ...).

The same would be true for a club of vintage car owners, or wine, or ... Anything can go.

So what I would like to do is set up a non-derived contact type "dog", with a drop down of breed, the gender, the parents, the discipline they play in, etc.

Is it anywhere possible to create another "built-in" contact type?
Or how difficult is it to do it in the source code if it can't be done from the administrative interface?

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Adding non-built-in-derived contact types
July 16, 2010, 11:31:22 am
Yes you can create additional Contact Types by going (in the menu) to Administer > Option Lists > Contact Types.  I don't recommend you edit existing contact types.  Rather create a new one for "Dog" and experiment adding custom fields (breed, color, etc) that are only available to Contacts of Type "Dog".

You could then create Relationship of type "Owner of/Owned By" that connect a Dog to an Individual.

All of this is in the Administer menu of CiviCRM.  Poke around and you will find it.

Good luck.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Ingmar

  • Guest
Re: Adding non-built-in-derived contact types
July 16, 2010, 01:19:40 pm
Thx for the reply, however, I did that already.
New types created that way are derived of Individual, which includes stuff like address, email, employee, phone, etc... And that's exactly what I don't want. I want to create basically a NEW type of contact, without inheriting anything from a built-in one.

Or am I missing something here?

ffwd

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.4.5
Re: Adding non-built-in-derived contact types
July 20, 2010, 07:09:56 am
You could use the method mentioned above: create a contact type 'dog' based on 'individual' and add custom fields through 'Administer' > 'Customize' > 'Custom data'. Set 'Used for' to 'dog'.

Then, goto 'Administer' > 'Customize' > 'CiviCRM Profile' and create a profile for dogs. You can add a number of fields from individual and the custom fields you need. You can add the profile to the navigation menu, see: http://en.flossmanuals.net/CiviCRM/CapturingExposing (Under Linking to your Form)

Ingmar

  • Guest
Re: Adding non-built-in-derived contact types
July 20, 2010, 03:37:31 pm
Thx,

apparently I was missing something : RTFM  ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Adding non-built-in-derived contact types

This forum was archived on 2017-11-26.