Add New Phone Types
How to define new phone number types.
The default configuration for OpenGroupware defines three phone numbers for Enterprise documents and six phone numbers for Contact (Person) documents.
These are:
Although it is not nessecary as this configuration is the default, the command to explicity define this configuration would be:
The numeric prefixes on the telephone number type codes are used for sorting.
To add a couple new telephone number types to the Enterprise documents:
These are:
| Code | Description | Applies To |
|---|---|---|
| 01_tel | The first phone number | Contact & Enterprise |
| 02_tel | The second phone number | Contact & Enterprise|
| 10_fax | The FAX number | Contact & Enterprise |
| 03_tel_funk | The Mobile Number | Contact |
| 05_tel_private | The private phone number | Contact |
| 15_fax_private | The private fax number | Contact |
Although it is not nessecary as this configuration is the default, the command to explicity define this configuration would be:
Defaults write NSGlobalDomain LSTeleType '{ Enterprise = ( "01_tel", "02_tel", "10_fax" ); Person = ( "01_tel", "02_tel", "03_tel_funk", "05_tel_private", "10_fax", "15_fax_private" ); }'
The numeric prefixes on the telephone number type codes are used for sorting.
To add a couple new telephone number types to the Enterprise documents:
- Define an appropriate code. For instance we are going to use "80_tel_parts" and "81_fax_parts".
- Add these codes to the appropriate document type in the LSTelType default. It is important that you include the previous configuration - defaults defined by the administrator are not additive, they completely override the built in defaults. So we execute:
Defaults write NSGlobalDomain LSTeleType '{ Enterprise = ( "01_tel", "02_tel", "10_fax", "80_tel_parts", "81_fax_parts" ); Person = ( "01_tel", "02_tel", "03_tel_funk", "05_tel_private", "10_fax", "15_fax_private" ); }' - For changes to be effective you must restart the OGo services.
- After restarting the web interface you should be able to select the new phone number types in the appropriate view; the Enterprise view in our case. You may have to click the "configure" button and select these attributes to be visible. However, they will appear in the view as the codes - that is "80_tel_parts" and "81_fax_parts" literally.