[rt-users] Make current queue more obvious (ideally as part of <% $title %>)

Kevin Falcone falcone at bestpractical.com
Wed Aug 29 16:46:03 EDT 2012


On Tue, Aug 28, 2012 at 03:26:57PM -0400, Jeff Blaine wrote:
> We have a need to make the current working queue more obvious
> in the web UI.
> 
> I've had a look, and my first choice desire would be to get
> html/Elements/PageLayout to include the queue name in $title:
> 
> 	...
> 	<div id="header">
> 	<h1><% $title %></h1>
> 	...
> 
> Looking at html/Elements/PageLayout's <%ARGS>, I see that
> 
> 	$title => $m->callers(-1)->path
> 
> How "$m->callers(-1)->path" gets converted into, say,
> "#5103: my test ticket", is beyond me :(
> 
> Has anyone already done something like this, and would you
> be willing to share your solution?
> 
> Barring that, any leads on the right path to head down would
> be welcome. I really don't fully comprehend all of the specifics
> of all of the pieces of RT internals, such as what is available
> in what scope, how $m works (which I assume is something to do
> with Mason), etc...

You'll have better luck starting in the code of Ticket/Display.html, it
defines the title right before it calls the BeforeDisplay callback and
you can absolutely munge the title from the BeforeDisplay callback in
Ticket/Display.html.

-kevin
-------------- 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/20120829/b971899c/attachment.sig>


More information about the rt-users mailing list