| 1 |
// $Id$
|
| 2 |
|
| 3 |
Custom Theming Of CiviCRM Contacts
|
| 4 |
==================================
|
| 5 |
|
| 6 |
The files in this directory are a simple example of how you
|
| 7 |
can theme crm contacts using PHPTemplate. The contents of
|
| 8 |
theme.php go in your theme's theme.php file; the very basic
|
| 9 |
crm_contact.tpl.php file is a sample of formatting a contact
|
| 10 |
as a table. Since the default implementation of theme('crm_contact')
|
| 11 |
already does more than this, you will certainly want to improve it.
|
| 12 |
|
| 13 |
Currently, the following variables are delivered to the template:
|
| 14 |
|
| 15 |
'contact' => An associative array of the contact info
|
| 16 |
'cck_field' => The CCK $field object
|
| 17 |
'field_info' => An array of formatting info taken from the
|
| 18 |
CiviCRM profile object
|
| 19 |
'profile_id' => The profile_id of the profile.
|
| 20 |
|
| 21 |
This will likely be improved incrementally, but that should get
|
| 22 |
people started out.
|
| 23 |
|
| 24 |
|