6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1058] Complete the options sidebar with configurable applications
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.__ ._. ..___ [__ [__) | |[__ | | _|_\__||
Comment
> The UI for changing the options for (for example) IMP when installed > in Horde is quite difficult to find. One either has to click on the > Mail on the left sidebar and then Options on the top menu, or on the > Options on the left sidebar and then select the appropriate > application in a combo box. > > > > Took me 2 hours to find! :-) > > > > This little patch simply puts those applications configurable through > horde as children element of the "Options" menu in the left sidebar, > and making them easier to find for unexperienced users. > > > > --- services/portal/sidebar.php.orig 2005-01-03 16:14:04.720035864 +0000 > > +++ services/portal/sidebar.php 2005-01-03 16:13:24.556141704 +0000 > > @@ -151,6 +151,41 @@ > > 'status' => 'active', > > 'icon' => $registry->getImageDir() > . '/prefs.png', > > 'url' => > Horde::applicationUrl('services/prefs.php')); > > + > > + /* Get list of customizable applications. */ > > + $apps = array(); > > + foreach ($registry->applications as $application => $params) { > > + if ($application == 'horde') { > > + continue; > > + } > > + > > + // Make sure the app is installed > > + if (!file_exists($registry->get('fileroot', $application))) { > > + continue; > > + } > > + > > + if ($params['status'] == 'heading' || > > + $params['status'] == 'block') { > > + continue; > > + } > > + > > + /* Check if the current user has permisson to see this > > + * application, and if the application is active. > > + * Administrators always see all applications. */ > > + if ((Auth::isAdmin() && $params['status'] != 'inactive') || > > + ($registry->hasPermission($application) && > > + ($params['status'] == 'active' || $params['status'] > == 'notoolbar'))) { > > + $apps[$application] = _($params['name']); > > + } > > + } > > + > > + foreach ($apps as $key => $val) { > > + $menu['options_' . $key] = array('name' => _($val), > > + 'status' => 'active', > > + 'menu_parent' => 'options', > > + 'icon' => > $registry->get('icon', $key), > > + 'url' => > Horde::applicationUrl('services/prefs.php?app=' . $key)); > > + } > > } > > > > if (Auth::isAuthenticated()) { > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers