[imp] expanding menu by default
Michael M Slusarz
slusarz at horde.org
Tue Mar 7 23:17:13 PST 2006
Quoting Chris <bsd at 1command.com>:
> Quoting Earnie Boyd <earnie at users.sourceforge.net>:
>
>> Quoting David Bain <david.bain at alteroo.com>:
>>
>>> Okay.... I figured it out.
>>>
>>> find 'horde3/imp/lib/Block/tree_folders.php' and look for the
>>> $tree->addNode
>>> entry that affects the menu that you want to change.
>>>
>>> In my case I was using debian sarge and the file is located under
>>> /usr/share/horde3/imp/lib/Block/tree_folders.php
>>>
>>> In line 159 - 161: the expand option defaults to false change it to
>>> true(see example below):
>>>
>>> $tree->addNode($parent, $registry->get('menu_parent', $parent),
>>> sprintf('<b>%s</b> (%s)', $registry->get('name',
>>> $parent), $unseen),
>>> $indent - 1, true, $node_params);
>>>
>
> Excellent discovery. Thanks for taking the time to share it.
>
>> FWIW, I prefer them expanded as well. This should become customizable
>> via config/prefs.php. Maybe in $_prefs['initial_page']?
A preference controlling the sidebar expansion has been added to HEAD
and 4.1.1.
michael
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the imp
mailing list