[turba] Different tabs in Turba

Christian Mimberg Maumi at gmx.de
Tue May 27 18:55:35 UTC 2008


Hello,

I have configed my turba, so that there are different tabs when a contact is shown. After I have updatet to the newest version, the second tab is empty.

Here are my sources.php and my attributes.php:

Sources.php

$cfgSources['localsql'] = array(
    'title' => _("My Address Book"),
    'type' => 'sql',
    'params' => array_merge($conf['sql'], array('table' => 'turba_objects')),
    'map' => array(
        '__key' => 'object_id',
        '__owner' => 'owner_id',
        '__type' => 'object_type',
        '__members' => 'object_members',
        '__uid' => 'object_uid',
        'name' => 'object_name',
        'email' => 'object_email',
        'birthday' => 'object_birthday',
        'homePhone' => 'object_homephone',
        'cellPhone' => 'object_cellphone',
        'fax' => 'object_fax',
        'germanCellPhone' => 'object_germanCellPhone',
        'homeAddress' => 'object_homeaddress',
        'company' => 'object_company',        
        'workAddress' => 'object_workaddress',
        'workEmail' => 'object_workemail',
        'workPhone' => 'object_workphone',
        'workCellPhone' => 'object_workcellphone',
        'workFax' => 'object_workfax',
        'notes' => 'object_notes'
      ),
 'tabs' => array(
                  'Privat' => array('name', 'email', 'birthday', 'homePhone', 'cellPhone', 'fax', 'germanCellPhone','homeAddress'),
                  'Geschäftlich' => array('company', 'workEmail', 'workPhone', 'workCellPhone', 'workFax', 'workAddress')
              ),
   
    'search' => array(
        'name',
        'email'
    ),
    'strict' => array(
        'object_id',
        'owner_id',
        'object_type',
    ),
    
    'export' => true,
    'browse' => true,
    'use_shares' => true,
);

Attributes.php


$attributes['name'] = array(
    'label' => _("Name"),
    'type' => 'text',
    'required' => true,
    'params' => array('', 40, 255)
);
$attributes['firstname'] = array(
    'label' => _("First Name"),
    'type' => 'text',
    'required' => true
);
$attributes['lastname'] = array(
    'label' => _("Last Name"),
    'type' => 'text',
    'required' => true
);
$attributes['email'] = array(
    'label' => _("Email"),
    'type' => 'email',
    'required' => false,
    'params' => array('', 40, 255)
);
$attributes['workEmail'] = array(
    'label' => _("Email geschäftlich"),
    'type' => 'email',
    'required' => false,
    'params' => array('', 40, 255)
);

$attributes['company'] = array(
    'label' => _("Company"),
    'type' => 'text',
    'required' => false,
    'params' => array('', 40, 255)
);
$attributes['homeAddress'] = array(
    'label' => _("Home Address"),
    'type' => 'address',
    'required' => false,
    'params' => array('2', '40')
);
$attributes['homeStreet'] = array(
    'label' => _("Home Street Address"),
    'type' => 'text',
    'required' => false
);
$attributes['homeCity'] = array(
    'label' => _("Home City"),
    'type' => 'text',
    'required' => false
);
$attributes['homeProvince'] = array(
    'label' => _("Home State/Province"),
    'type' => 'text',
    'required' => false
);
$attributes['homePostalCode'] = array(
    'label' => _("Home Postal Code"),
    'type' => 'text',
    'required' => false
);
$attributes['homeCountry'] = array(
    'label' => _("Home Country"),
    'type' => 'text',
    'required' => false
);
$attributes['workAddress'] = array(
    'label' => _("Work Address"),
    'type' => 'address',
    'required' => false,
    'params' => array('2', '40')
);
$attributes['workStreet'] = array(
    'label' => _("Work Street Address"),
    'type' => 'text',
    'required' => false
);
$attributes['workCity'] = array(
    'label' => _("Work City"),
    'type' => 'text',
    'required' => false
);
$attributes['workProvince'] = array(
    'label' => _("Work State/Province"),
    'type' => 'text',
    'required' => false
);
$attributes['workPostalCode'] = array(
    'label' => _("Work Postal Code"),
    'type' => 'text',
    'required' => false
);
$attributes['workCountry'] = array(
    'label' => _("Work Country"),
    'type' => 'text',
    'required' => false
);
$attributes['companyAddress'] = array(
    'label' => _("Company Address"),
    'type' => 'address',
    'required' => false,
    'params' => array('3', '40')
);
$attributes['homePhone'] = array(
    'label' => _("Home Phone"),
    'type' => 'text',
    'required' => false,
    'params' => array('', 40, 25)
);
$attributes['workPhone'] = array(
    'label' => _("Work Phone"),
    'type' => 'text',
    'required' => false,
    'params' => array('', 40, 25)
);
$attributes['cellPhone'] = array(
    'label' => _("Mobile Phone"),
    'type' => 'cellphone',
    'required' => false,
);
$attributes['workCellPhone'] = array(
    'label' => _("Mobil geschäftlich"),
    'type' => 'cellphone',
    'required' => false,
);

$attributes['germanCellPhone'] = array(
    'label' => _("Mobil Ausland"),
    'type' => 'cellphone',
    'required' => false,
);

$attributes['workFax'] = array(
    'label' => _("Fax geschäftlich"),
    'type' => 'text',
    'required' => false,
    'params' => array('', 40, 25)
);

$attributes['fax'] = array(
    'label' => _("Fax"),
    'type' => 'text',
    'required' => false,
    'params' => array('', 40, 25)
);
//$attributes['businessCategory'] = array(
//    'label' => _("Business Category"),
//    'type' => 'text',
//    'required' => false
//);
//$attributes['birthday'] = array(
//    'label' => _("Birthday"),
//    'type' => 'monthdayyear',
//    'params' => array(1900, null, true, '%Y-%m-%d'),    
   // 'params' => array(1900, null, true, 1),
//7    'required' => false,
//);

$attributes['birthday'] = array(
    'label' => _("Birthday"),
    'type' => 'monthdayyear',
    'required' => false,
    'params' => array('start_year' => 1900, 'end_year' => null, 'picker' => true, 'format_in' => '%Y-%m-%d', 'format_out' => '%x'),
    'time_object_label' => _("Birthdays"),
);


$attributes['notes'] = array(
    'label' => _("Notes"),
    'type' => 'longtext',
    'required' => false,
    'params' => array('2', '40')
);


Thank you

Christian
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx


More information about the turba mailing list