2

I'm fairly new to working with Drupal and CiviCRM so I apologize on my lack of knowledge. I was looking into customizing CiviCRM and stripping out a lot of stuff I don't need. Stripping out and hiding things seems fairly easy according to the documentation, but how would I go about creating totally new entities that I can add my own custom fields to? There doesn't seem to be any discussion or examples on this? I'm used to working with Microsoft CRM in the past where you can create your own entities and custom fields and then relate these new entities back to existing ones. I've looked into creating a custom extension via the documentation but this doesn't seem to cover creating a totally new separate entity. Am I missing anything?

*Edit, see this example of Microsoft CRM where you can easily create custom entities to fit your needs. This is the type of functionality I'm looking for. https://www.youtube.com/watch?v=YrwBpRVeMwo. Obviously CiviCRM isn't Microsoft, but I feel that having the ability to create custom entities is highly important to tailoring a fitting solution.

  • welcome - can you please flesh out the requirement, ie what would be different once you have a new custom entity. Also what are the use cases where you need stuff stripped out. – petednz - fuzion Jul 27 '15 at 20:00
  • Lets say I want to keep and customize (remove certain fields) from the Contacts entity. I would not be using most of the other components either. For custom entities, I would like to create one for Magazines, and one for Advertisements. This would not be used in a typical CRM fashion but more so a custom XRM way for custom data/relationship needs. – tderosier Jul 27 '15 at 20:25
  • @tderosier can you please edit your question to incorporate your comment and fully describe your requirement. – Coleman Jul 27 '15 at 23:52
  • if you can flesh out what a 'magazine' means, or an 'advert' then we might be able to advise. eg Does Company X 'publish' a magazine (Y). Does Company Z 'purchase' an advert in Magazine Y? – petednz - fuzion Jul 28 '15 at 3:52
  • @Coleman, please see my newly added edit for more details. – tderosier Jul 28 '15 at 15:08
1

If you are using CiviCRM within Drupal, you can create Drupal Custom Content Types for magazine, advert, etc. Your custom content type definition can include fields of data type "CiviCRM Contact" which can be required, optional, multi-valued, etc.

1

This is possible in CiviCRM, but the documentation for doing so has been scattered and incomplete. It's now gathered here in one place: https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension#CreateaModuleExtension-Addanewentity

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.