[turba] Trouble with _prefs['columns']
Patrick Boutilier
boutilpj at ednet.ns.ca
Fri Apr 17 01:04:01 UTC 2009
On 12/23/-28158 03:59 PM, Michael Rubinsky wrote:
> <div class="moz-text-flowed" style="font-family: -moz-fixed">
> Quoting Patrick Boutilier <boutilpj at ednet.ns.ca>:
>
>> Turba 2.3.1
>>
>> I am trying to set the following default for everybody but it only works
>> for localsql when 'use_shares' => false is set for localsql in
>> sources.php . Is there a way to use localsql in __prefs['columns'] when
>> using 'use_shares' => true ?
>
> It might be possible using a hook, but the issue is that when NOT using
> shares, as you've discovered, the source is identified by the cfgSources
> entry (localsql in your case). When you ARE using shares, each address
> book must be uniquely identified across the installation, in other
> words, it's NOT identified by 'localsql' anymore, so it's not possible
> to set a global default in that way.
No problem. Just wanted to make sure I wasn't overlooking something. I
might look into a hook if I decide it is important enough to keep the
same default value that we had for $_prefs['columns'] in Turba 2.1.x . :-)
>
>>
>>
>> // Columns to be displayed in Browse and Search results, with entries
>> // for the columns displayed for each address book. Separate address
>> // book stanzas with \n and columns with \t. The "name" column is
>> // currently always displayed first and so cannot be modified here.
>> // Double quotes MUST be used as in the example.
>> $_prefs['columns'] = array(
>> 'value' =>
>> "localsql\tfirstname\tlastname\temail\nglobalsql\tfirstname\tlastname\temail\tworkAddress\tcompany",
>>
>> 'locked' => false,
>> 'shared' => false,
>> 'type' => 'implicit',
>> );
>>
>>
>>
>> conf.php . Not sure that I have $conf['client']['addressbook'] correct
>> as I am having trouble deciphering this comment:
>>
>> "Name of client addressbook. If this is a shared address book, use the
>> share id, not the source name"
>>
>>
>> $conf['menu']['import_export'] = true;
>> $conf['menu']['apps'] = array('imp');
>> $conf['client']['addressbook'] = 'localsql';
>> $conf['shares']['source'] = 'localsql';
>> $conf['comments']['allow'] = true;
>> $conf['documents']['type'] = 'none';
>
>
>
> Thanks,
> mike
>
> --
> The Horde Project (www.horde.org)
> mrubinsk at horde.org
>
> "Time just hates me. That's why it made me an adult." - Josh Joplin</div>
More information about the turba
mailing list