SiT! Bugs - SiT!
View Issue Details
0001469SiT!incidentspublic2011-02-20 20:202011-06-17 15:31
3.90beta1Current GIT 
0001469: Add plugin_do to to extend the menu and add id's to the html tags
In the include "" we require a plugin to add an item to the top menu around line 362. This will enable us to add pages to the incident window like escalations. Also the same incluse file does not have id's assigned to the html tags.
No tags attached.
Issue History
2011-02-20 20:20nicdevNew Issue
2011-02-20 20:27paulhNote Added: 0003621
2011-02-20 20:27paulhAssigned To => nicdev
2011-02-20 20:27paulhStatusnew => feedback
2011-02-20 20:32ivanNote Added: 0003622
2011-02-20 20:39ivanNote Added: 0003623
2011-02-23 14:33nicdevNote Added: 0003644
2011-02-23 14:33nicdevStatusfeedback => assigned
2011-02-23 14:34nicdevAssigned Tonicdev => ivan
2011-02-23 14:36ivanNote Added: 0003645
2011-02-28 10:32ivanNote Added: 0003658
2011-04-08 14:38ivanTarget Version => 3.90beta1
2011-06-03 22:49ivanSeverityminor => feature
2011-06-17 15:31ivanNote Added: 0004034
2011-06-17 15:31ivanStatusassigned => resolved
2011-06-17 15:31ivanFixed in Version => Current GIT
2011-06-17 15:31ivanResolutionopen => fixed

2011-02-20 20:27   
Hi Nico,

You don't need a plugin_do to extend the menu, you can just add items to the $hemnu array e.g.

$hmenu[60][] = array ( 'perm'=> 37, 'name'=> "OUR Reports", 'url'=>"", 'submenu'=>"6099");
$hmenu[6099][] = array ( 'perm'=> 67, 'name'=> "Sick day report", 'url'=>"{$CONFIG['application_webpath']}plugins/our_reports/sickdays.php", 'submenu'=>"0");
$hmenu[6099][] = array ( 'perm'=> 37, 'name'=> "Proforma Invoices", 'url'=>"{$CONFIG['application_webpath']}plugins/our_reports/proforma_invoice_csv.php", 'submenu'=>"0");

In your plugin file
2011-02-20 20:32   
this is the popup window menu which doesn't use that array. so I think a plugin hook is needed for this.
2011-02-20 20:39   
the context 'html_head' got added in 3.90 - is this sufficient?
2011-02-23 14:33   
Ivan, just had a look ... that hook is not really in a good plaec, maybe we can add one just before line 261:

echo "</div>";

This way we can add another item to the barlink.


2011-02-23 14:36   
Since this is specifically to extend the menu, I'm going to hold off for now if you don't mind until we've decided what we're doing with the menus for v3.90. See the discussion on the sit-devel-discuss mailing list if you want to add your voice.
2011-02-28 10:32   
for 'plugin_extended_escalations' .. not published yet .. it's in svn though
2011-06-17 15:31   
Git c0cea8f: add a plugin hook 'incident_details_menu' for adding items to the incident details menu. Fixes Mantis 1469 -- /home/ivan/src/ericthefish-sit/inc/