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

Attachment: pgpgaSAFg12M9.pgp
Description: PGP signature

--------
RT Training Sessions (http://bestpractical.com/services/training.html)
*  Barcelona, Spain — November 28 & 29, 2011

Reply via email to