Skip to content

OGo Docs

Sections
Personal tools
You are here: Home » Members » whitemice's Home » Add New Phone Types

Add New Phone Types

Document Actions
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:
CodeDescriptionApplies To
01_telThe first phone numberContact & Enterprise
02_telThe second phone numberContact & Enterprise
10_faxThe FAX numberContact & Enterprise
03_tel_funkThe Mobile NumberContact
05_tel_privateThe private phone numberContact
15_fax_privateThe private fax numberContact

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:
  1. Define an appropriate code. For instance we are going to use "80_tel_parts" and "81_fax_parts".
  2. 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" ); }'
  3. For changes to be effective you must restart the OGo services.
  4. 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.
Created by whitemice
Last modified 2006-04-25 03:18 AM
 

Powered by Plone

This site conforms to the following standards: