1 / 10

The SF School Module

The SF School Module . Donald Lobo lobo@yahoo.com. Topics. Problem? Data Model Writing a simple Extension The .info file The .module file Quick Overview of hooks Directory Layout Extend and Embed. Problem?. CRM for a School Allow Parents access to student information

dayton
Download Presentation

The SF School Module

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The SF School Module Donald Lobo lobo@yahoo.com

  2. Topics • Problem? • Data Model • Writing a simple Extension • The .info file • The .module file • Quick Overview of hooks • Directory Layout • Extend and Embed

  3. Problem? • CRM for a School • Allow Parents access to student information • Handle Conferences • Handle Extended Care Scheduling • Handle Billing

  4. Data Model • Three main types: Student,Teacher,Parent • CiviCRM holds and manages core data • Custom Data extends Contact to handle school specific data • Additional Student data stored in custom groups • Extended Care data stored in custom group with multiple records • Hooks to extend profiles

  5. Writing a Simple Extension • For Drupal • Write a .info and .module file • Enable the module • Implement your hooks in the .module file • For Joomla and Standalone • Create a file called civicrmHooks.php • Implement your hooks in this file

  6. Info File (Drupal Specific) name = San Francisco School Module description = Implement CiviCRM hooks for SFS dependencies[] = civicrm package = CiviCRM core = 6.x version = 2.2

  7. What does it do? • For parents to manage their information • Update address / email / phone • Sign up for extended care classes • Sign up for parent teacher conference meetings • Answer teacher questionnaires

  8. How did we do it? • Custom Groups and Fields • Profiles • Permissioned Relationships • Hooks • buildForm / postProcess • pageRun • xmlMenu

  9. More details • Used Multiple Custom Group • Implemented save/update via hooks • Customized templates to improve look • Customized menu handlers for some functionality • Manage one custom table to hold data • Custom Reports for teachers

  10. Code • http://svn.civicrm.org/sfschool/trunk/ • Needs a good data set

More Related