100 likes | 234 Views
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
E N D
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 • Handle Conferences • Handle Extended Care Scheduling • Handle Billing
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
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
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
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
How did we do it? • Custom Groups and Fields • Profiles • Permissioned Relationships • Hooks • buildForm / postProcess • pageRun • xmlMenu
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
Code • http://svn.civicrm.org/sfschool/trunk/ • Needs a good data set