[imp] expanding menu by default

David Bain david.bain at alteroo.com
Sat Mar 4 04:09:20 PST 2006


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);



I mostly work with Zope/Plone solutions but found imp nice enough to make me
look at PHP for a webmail solution. Hopefully this will help someone else in
the horde world who needs their menus expanded by default.

I appreciate that the solution is a bit of a hack, but it's very frustrating
when there is zero documentation. This is massive contrast to the growing
documentation area over at http://plone.org/documentation. I tangent....
(/me hope this doesn't start a flame war). I only wish the horde project
well. I've benefited from it.

On 3/3/06, Jan Schneider <jan at horde.org> wrote:
>
> Zitat von David Bain <david.bain at alteroo.com>:
>
> > I'd like the Mail Menu on the left to be expanded by default in
> otherwords,
> > I won't have to click the little + sign to view the Inbox, Sent, Drafts
> > etc.......
> > Is there a setting in a config file for this?
>
> No.
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>


More information about the imp mailing list