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) »
  • Creating a new type of record
Pages: [1]

Author Topic: Creating a new type of record  (Read 931 times)

leapywca

  • Guest
Creating a new type of record
October 01, 2009, 10:39:24 am
While configuring our new site we wish to make a new type of record (the default ones include Individual, Organization, ect).  We would like to be able to select a custom record type when creating a new custom data group (it would appear in the drop down next to "Used For").  I've done some searching and haven't been able to find how this is done or if it is possible, so any help would be greatly appreciated.

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: Creating a new type of record
October 01, 2009, 11:22:40 am

This is currently not possible in 3.0 and prior

however there is a project for 3.1 which will add contact subtypes

http://civicrm.org/node/626

This project will not allow injection of new top level types. If you / your org is interested in sponsoring that part of the work, do get in touch. I suspect it will be another 100-200 hour project

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

leapywca

  • Guest
Re: Creating a new type of record
October 01, 2009, 11:53:47 am
Thanks for the reply - so does this mean we aren't able to add new data types at all?  For example we are interesting in creating a department object where our non profit would be able to add new departments, view all current departments and remove departments - each department would have a list of programs they offer and the programs would have specific events associated with them.

Also we were looking to change the functionality of adding a new user.  Since there is no UI based way to remove some of the default fields in adding a new individual we were trying to make our own custom page for adding a new individual.  We did this by making a new custom profile and adding custom data fields to it then linking to that profile.  The problem is when we actually try to create a new user based on our custom page it essentially adds this new user component to the account we are logged in as instead of creating a new account like we want. 

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: Creating a new type of record
October 01, 2009, 12:10:16 pm

cant add new data types as yet. You can extend existing data types and add relevant fields

use the url: civicrm/profile/create?reset=1&gid=XXX. this creates a new object rather than edit/updates an existing one

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) »
  • Creating a new type of record

This forum was archived on 2017-11-26.