Tine2.0

Developers/Concepts/CustomFields

Custom Fields

Adding a new custom field to the addressbook

create a record in the customfield_config table:

INSERT INTO `tine20`.`tine20_customfield_config` (`id`, `application_id`, `name`,
`label`, `model`, `type`,  `length`, `group`, `order`) VALUES 
('someid', 'a387fb2fc67cd79de24026d9abaf88845e12254a', 'customfield', 
'Custom Field', 'Addressbook_Model_Contact', 'textfield', '255', 'group', '11');


a387fb2fc67cd79de24026d9abaf88845e12254a should be replaced by your addressbook application id.

you can use 'checkbox', 'numberfield' and 'textfield' xtype as 'type'.

after doing that, the custom field tab panel in the contact edit dialog should become active (browser reload / fresh login required). perhaps you need to clear the cache first if you use caching, because the custom fields are cached.