[rt-users] RT3.8 -> RT4 Callback changes - Elements/Tabs/Default

Roedel, Mark MarkRoedel at letu.edu
Fri Sep 16 10:28:08 EDT 2011


Here's my callback code to add an item to global "Tools" menu:

<%init>
my $tools = Menu()->child('tools');
$tools->child( timeworkedreport => title => 'Time Worked Report', path => '/Tools/Reports/TimeWorkedReport.html', description => 'Time Worked Report' );
</%init>
<%args>
$Actions => undef
</%args>


--
MarkR


-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Allen
Sent: Thursday, September 15, 2011 6:23 PM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] RT3.8 -> RT4 Callback changes - Elements/Tabs/Default

So is the answer to this question to continue to use Callback but with the filename "Privileged" instead of "Default" ?

What is the code to make a new Menu item at the top of every page?


/opt/rt4/local/html/Callbacks/Default/Ticket/Elements/Tabs/Privileged

with

<%INIT>

Menu->child( new => title => "bbbbbbbbb" => path => "/lalala?lala=1"
);

</%INIT>

does nothing.


The suggestion to look at JsGant extension is not that helpful because they are just operating on what used to be the top tab menu items in 3.x. I want to add an item to the "Tickets" global menu item (what used to be the left side nav in 3.x).

is "PageMenu" for the toptabs and "Menu" for the global menu?

The only other info I could find on this topic is
http://www.gossamer-threads.com/lists/rt/users/104918 and that isn;t much to go on.

Could I have a code example of how someone has added something to the global menu in 4.x?



More information about the rt-users mailing list