[turba] remove containers from sidebar - no sharing

Ico Izquierdo ico at cc.upv.es
Tue Jun 16 07:32:14 UTC 2015



El 12/06/2015 a las 15:56, Michael J Rubinsky escribió:
>
> Quoting Ico Izquierdo <ico at cc.upv.es>:
>
>> Hello,
>> I'm migrating from a very old version. I've near all installed and 
>> runnig but I don't understand how sidebar in turba works.
>>
>> There are configured two ldap directories and one Address Book 
>> (localsql), and I don't wont sharing address books.
>>
>> I think I got it but they still appears "My Address Books" and 
>> "Shared Address Books" containers with a legend "No items to 
>> display", and I would like to remove, leaving allone the mentioned 
>> items.
>>
>> Somebody can doing some like this?
>>
>> Thanks
>>
>> Config files:
>> /horde/turba/config/backends.local.php:
>> $cfgSources['localldap']['disabled'] = true;
>> $cfgSources['personal_ldap']['disabled'] = true;
>> $cfgSources['favourites']['disabled'] = true;
>> $cfgSources['imsp']['disabled'] = true;
>>
>> /horde/config/conf.local.php
>> $conf['share']['no_sharing'] = true;       //original false  1
>> $conf['share']['auto_create'] = false;       //original true  2
>> $conf['share']['world'] = false;             //original true  4
>> $conf['share']['any_group'] = false;        //original false
>> $conf['share']['hidden'] = true;           //original false  3
>> $conf['share']['cache'] = false;            //original false
>>
>
> Try
>
> $cfgSources['localsql']['use_shares'] = false;
>
>
>
Thank you very much Michael but that param was allready like this, false.

This is the entire source config:

$cfgSources['localsql'] = array(
     // ENABLED by default
     'disabled' => false,
//    'title' => _("Shared Address Books"),
     'title' => _("Address Book"),
     'type' => 'sql',
     'params' => array(
         'table' => 'turba_objects'
     ),
     'map' => array(
         '__key' => 'object_id',
         '__owner' => 'owner_id',
         '__type' => 'object_type',
         '__members' => 'object_members',
         '__uid' => 'object_uid',
         'firstname' => 'object_firstname',
         'lastname' => 'object_lastname',
         'middlenames' => 'object_middlenames',
         'namePrefix' => 'object_nameprefix',
         'nameSuffix' => 'object_namesuffix',
         'name' => array('fields' => array('namePrefix', 'firstname',
                                           'middlenames', 'lastname',
                                           'nameSuffix'),
                         'format' => '%s %s %s %s %s',
                         'parse' => array(
                             array('fields' => array('firstname', 
'middlenames',
'lastname'),
                                   'format' => '%s %s %s'),
                             array('fields' => array('firstname', 
'lastname'),
                                   'format' => '%s %s'))),
         // This is a shorter version of a "name" composite field which only
         // consists of the first name and last name.
         // 'name' => array('fields' => array('firstname', 'lastname'),
         //                 'format' => '%s %s'),
         'alias' => 'object_alias',
         'yomifirstname' => 'object_yomifirstname',
         'yomilastname' => 'object_yomilastname',
         'birthday' => 'object_bday',
         'anniversary' => 'object_anniversary',
         'spouse' => 'object_spouse',
         'photo' => 'object_photo',
         'phototype' => 'object_phototype',
         'homeStreet' => 'object_homestreet',
         'homePOBox' => 'object_homepob',
         'homeCity' => 'object_homecity',
         'homeProvince' => 'object_homeprovince',
         'homePostalCode' => 'object_homepostalcode',
         'homeCountry' => 'object_homecountry',
         'homeAddress' => array('fields' => array('homeStreet', 'homeCity',
'homeProvince',
'homePostalCode'),
                                'format' => "%s\n%s, %s %s"),
         'workStreet' => 'object_workstreet',
         'workPOBox' => 'object_workpob',
         'workCity' => 'object_workcity',
         'workProvince' => 'object_workprovince',
         'workPostalCode' => 'object_workpostalcode',
         'workCountry' => 'object_workcountry',
         'workAddress' => array('fields' => array('workStreet', 'workCity',
'workProvince',
'workPostalCode'),
                                'format' => "%s\n%s, %s %s"),
         'otherStreet' => 'object_otherstreet',
         'otherPOBox' => 'object_otherpob',
         'otherCity' => 'object_othercity',
         'otherProvince' => 'object_otherprovince',
         'otherPostalCode' => 'object_otherpostalcode',
         'otherCountry' => 'object_othercountry',
         'otherAddress' => array('fields' => array('otherStreet', 
'otherCity',
'otherProvince',
'otherPostalCode'),
                                 'format' => "%s\n%s, %s %s"),
         'department' => 'object_department',
         'manager' => 'object_manager',
         'assistant' => 'object_assistant',
         'timezone' => 'object_tz',
         'email' => 'object_email',
         // 'homeEmail' => 'object_homeemail',
         // 'workEmail' => 'object_workemail',
         'homePhone' => 'object_homephone',
         'homePhone2' => 'object_homephone2',
         'homeFax' => 'object_homefax',
         'workPhone' => 'object_workphone',
         'workPhone2' => 'object_workphone2',
         'cellPhone' => 'object_cellphone',
         'carPhone' => 'object_carphone',
         'radioPhone' => 'object_radiophone',
         'companyPhone' => 'object_companyphone',
         'assistPhone' => 'object_assistantphone',
         'fax' => 'object_fax',
         'pager' => 'object_pager',
         'title' => 'object_title',
         'role' => 'object_role',
         'company' => 'object_company',
         'logo' => 'object_logo',
         'logotype' => 'object_logotype',
         'notes' => 'object_notes',
         'website' => 'object_url',
         'freebusyUrl' => 'object_freebusyurl',
         'pgpPublicKey' => 'object_pgppublickey',
         'smimePublicKey' => 'object_smimepublickey',
         'imaddress' => 'object_imaddress',
         'imaddress2' => 'object_imaddress2',
         'imaddress3' => 'object_imaddress3'
     ),
     'tabs' => array(
         _("Personal") => array('firstname', 'lastname', 'middlenames',
                                'namePrefix', 'nameSuffix', 'name', 'alias',
                                'birthday', 'spouse', 'anniversary',
                                'yomifirstname', 'yomilastname', 'photo'),
         _("Location") => array('homeStreet', 'homePOBox', 'homeCity',
                                'homeProvince', 'homePostalCode', 
'homeCountry',
                                'homeAddress', 'workStreet', 'workPOBox',
                                'workCity', 'workProvince', 
'workPostalCode',
                                'workCountry', 'workAddress', 'otherStreet',
                                'otherPOBox', 'otherCity', 'otherProvince',
                                'otherPostalCode', 'otherCountry',
                                'otherAddress','timezone'),
         _("Communications") => array('email', 'homeEmail', 'workEmail',
                                      'homePhone', 'homePhone2',
                                      'workPhone', 'workPhone2', 'carPhone',
                                      'radioPhone', 'companyPhone',
                                      'assistPhone', 'homeFax',
                                      'cellPhone', 'fax', 'pager', 
'imaddress',
                                      'imaddress2', 'imaddress3'),
         _("Organization") => array('title', 'role', 'company', 
'department', 'logo', 'assistant', 'manager'),
         _("Other") => array('notes', 'website', 'freebusyUrl',
                             'pgpPublicKey', 'smimePublicKey'),
     ),
     'search' => array(
         'name',
         'email'
     ),
     'strict' => array(
         'object_id',
         'owner_id',
         'object_type',
         'object_uid'
     ),
     'export' => true,
     'browse' => true,
     'use_shares' => false,
     'list_name_field' => 'lastname',
     'alternative_name' => 'company',
);

Then, in my menu appears:
New Contact
Browse
Search
Import/Export
My Address Books
     No items to display
Shared Address Books
     No items to display
Other Address Books
     Address Book
     Personal de la UPV
     Alumnos de la UPV

And I would like remove My Address Books and Shared Address Books 
containers.

It's that posible?

Thanks.

-- 
Ico Izquierdo
Analista-Programador
ASIC - UPV



More information about the turba mailing list