[rt-users] RT4 Tab Callback

Kevin Falcone falcone at bestpractical.com
Wed Nov 9 18:11:53 EST 2011


On Wed, Nov 09, 2011 at 03:29:56PM -0500, Jérôme Charaoui wrote:
> Hello,
> 
> I'd like to introduce an extra tab in the RT4 ticket display page
> that links to an URL based on the ticket's Id number.
> 
> I understand I need to use the Elements/Tabs/Privileged callback,
> but since no arguments are passed to it, I'm not sure how I could
> access the required context elements, such as the current ticket
> object.
> 
> In this message [1], it's said that one should use the PageMenu ou
> Menu methods in that callback, but it doesn't seem like I can pull
> any useful information from there.

As I also said in that message, you should have a look at one of the
4.0 compatible extensions if you want to see working code.  I
suggested JSGantt

https://github.com/bestpractical/rt-extension-jsgantt/

It contains a working callback to add menus in RT4.
The query string checking isn't necessary if you just want to add it
everywhere.

-kevin

> Thanks,
> 
> Jerome Charaoui
> 
> [1] http://lists.fsck.com/pipermail/rt-users/2011-August/071994.html
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  Barcelona, Spain  November 28 & 29, 2011
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111109/8daf0ae1/attachment.sig>


More information about the rt-users mailing list