[horde] Customizing Horde Summary - help!
Ryan Gallagher
ryan at studiesabroad.com
Wed Sep 18 11:55:22 PDT 2002
Situation:
We have a ticket tracking system (php) that we've pseudo turned into a horde
module. I'd like to add an API function to generate the summary pane on the
horde login page. I thought I did what it would require, using mnemo as an
example. But it doesn't seem to be working.
HORDE 2.1
wrote a stand alone function in /horde/project/lib/api.php called
projectSummary() to return the $html for the summary.
edited the horde registry.php file as follows.
Added:
/* project: Handler for WorkOrders. */
//$this->registry['workorders']['search'] = 'project';
//$this->registry['workorders']['list'] = 'project';
$this->registry['workorders']['show'] = 'project';
//$this->registry['workorders']['add'] = 'project';
Is that needed?
We had this already (from turning it into a pseudo module):
$this->applications['project'] = array(
'fileroot' => dirname(__FILE__) . '/../project',
'webroot' => $this->applications['horde']['webroot'] . '/project',
//'icon' => $this->applications['horde']['webroot'] .
'/project/img/work_orders.gif',
'icon' => $this->applications['horde']['webroot'] .
'/project/img/stock_menu_properties.gif',
'name' => _("Work Orders"),
'allow_guests' => false,
'show' => true
);
Added this to services:
$this->services['project']['horde']['summary'] = array(
'file' => '%application%/lib/api.php',
'function' => 'projectSummary',
'args' => array(),
'type' => 'string'
);
I'm not getting any php errors, but it doesn't seem to do anything... but it has
changed one thing, the HORDE options & logout icons are now being pulled from
/horde/project/graphics/ (which don't exist... and are not appearing).
Does horde call projectSummary() as a method of some base object that I don't
have for my custom module? Not sure where to look next.
Any advice appreciated.
Ryan
--
Ryan T. Gallagher
ryan at studiesabroad.com
International Studies Abroad
http://www.studiesabroad.com
(512)480-8522
More information about the horde
mailing list