Archive for the ‘CiviCRM’ Category

CiviCRM quick notes

Tuesday, August 18th, 2015

http://civicrm.stackexchange.com/questions/728/limit-the-list-of-contacts-to-search-when-assigning-a-case-role/729#729

CiviCRM modules, extensions and hooks

Wednesday, August 5th, 2015

These are notes to myself about customizing CiviCRM. I have CiviCRM in Drupal but the notes are not specific to Drupal, at least I don’t think they are.

Customize Built-in, Profile, Contribution and Event Registration Screens

http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in%2C+Profile%2C+Contribution+and+Event+Registration+Screens

Related: http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API

There are at least 5 different ways of using an API function. In each environment, the API uses the same names for entities, actions, and parameters, but the syntax is slightly different. Entities are the data collections you want to operate on, for example Contact, Event or Group. The actions are the thing you want to do to the entity, for example get, create, delete or update.

You can use the API:

  1. as a PHP function, to run your own code on the same server as CiviCRM
  2. via the AJAX interface, to be called from JavaScript code
  3. via the REST* interface, can be called from another server via http/https calls
  4. as a Smarty function to add data to templates
  5. from drush on the command line for Drupal installations.

Limit the list of contacts to search when assigning a case role

http://civicrm.stackexchange.com/questions/728/limit-the-list-of-contacts-to-search-when-assigning-a-case-role?rq=1

The contact selector is an EntityRef field. If you’d like to “enforce” a certain group or other filter on this field, you can do so with a small amount of custom code on your site.

Modifying a form in CiviCRM depends on how the form is generated. Because this form is written in javascript, I recommend adding a custom js file to the CiviCase dashboard screen. It simply needs to add data to the two fields (edit_role_contact_id and add_role_contact_id) that specifies the group_id of your group.

You can either use a custom module/plugin on your website or create an extension to add your javascript file using CRM_Core_Resources from a hook. hook_civicrm_caseSummary might be a good one, you wouldn’t be using it for exactly its intended purpose but it fires on the right screen.

The contact selector is an EntityRef field. If you’d like to “enforce” a certain group or other filter on this field, you can do so with a small amount of custom code on your site.

Modifying a form in CiviCRM depends on how the form is generated. Because this form is written in javascript, I recommend adding a custom js file to the CiviCase dashboard screen. It simply needs to add data to the two fields (edit_role_contact_id and add_role_contact_id) that specifies the group_id of your group.

You can either use a custom module/plugin on your website or create an extension to add your javascript file using CRM_Core_Resources from a hook. hook_civicrm_caseSummary might be a good one, you wouldn’t be using it for exactly its intended purpose but it fires on the right screen.

Configure extensions

http://wiki.civicrm.org/confluence/display/CRMDOC/Extensions

Install civix for civicrm

http://wiki.civicrm.org/confluence/display/CRMDOC/Create+an+Extension

https://github.com/totten/civix/

Create a module extension

http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension

Module to demonstrate CiviCRM hooks

https://github.com/eileenmcnaughton/civicrm_developer

Hook reference

http://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference#HookReference-Goalsandbackground

hook_civicrm_buildForm — This hook is invoked when building a CiviCRM form. This hook should also be used to set the default values of a form element, to change form elements attributes, or even to add new fields to a form.

http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm

Examples:

set “Assigned To” for an Activity to default to the logged-in user name?

http://civicrm.stackexchange.com/questions/4399/how-can-i-set-assigned-to-for-an-activity-to-default-to-the-logged-in-user-nam

You cannot influence the activity source contact with the membership API Create action, but interesting discussion

http://civicrm.stackexchange.com/questions/4396/can-i-influence-the-activity-source-contact-with-the-membership-api-create-actio

CiviCRM activity dashlet add time as well as date

Sunday, May 3rd, 2015

http://herbal-jazz.net/2014/03/civicrm-adding-a-timestamp-to-activity-reports/

CiviCRM graphic calendar

Tuesday, April 21st, 2015

https://civicrm.org/extensions/contact-calendar

http://emphanos.com/new/civicrm-activities-in-outlook-and-google-calendar/

http://www.ehow.com/how_12201992_sync-outlook-drupal.html

https://github.com/iCalcreator/iCalcreator

https://www.google.com/search?q=mysql+ical+feed&ie=utf-8&oe=utf-8

http://stevethomas.com.au/php/how-to-build-an-ical-calendar-with-php-and-mysql.html

php coding http://www.codeigniter.com/user_guide/

http://stackoverflow.com/questions/6661288/how-to-create-a-ical-ics-feed-in-php

http://stackoverflow.com/questions/23206761/exposing-calendar-as-an-ical-with-subscribe-option-in-php

http://stackoverflow.com/questions/8908066/importing-ical-calendar-into-mysql-database

http://www.dhtmlx.com/blog/ical-exportimport-tool-for-dhtmlxscheduler/

https://www.google.com/search?q=mysql+cal+dav+server&ie=utf-8&oe=utf-8

http://radicale.org/project_description/

https://www.linux.com/learn/tutorials/402382:the-five-best-open-source-calendar-servers-for-linux

http://www.davical.org/

http://calendarserver.org/

 

From Quickbooks to Odoo

Tuesday, April 21st, 2015

Something to investigate

https://www.odoo.com/

https://civicrm.org/blogs/jaapjansma/civicrm-constituent-management-and-odoo-accounting