[rt-users] [phish?] Re: clarification on callbacks

Alex Hall ahall at autodist.com
Wed Oct 12 21:44:24 EDT 2016


> On Oct 12, 2016, at 21:37, Matt Zagrabelny <mzagrabe at d.umn.edu> wrote:
> 
> On Wed, Oct 12, 2016 at 3:53 PM, Alex Hall <ahall at autodist.com> wrote:
>> Callbacks I get now, at least I'm pretty sure I do. I've been reading the
>> docs for RT objects, and if I can use any of the properties and methods I've
>> found, I can see how plugins are so powerful.
>> 
>> My sticking point now is modifying what's already there. I can remove items
>> from a menu with deleteKey, but I haven't found a way to remove items from
>> other areas of RT and replace them with my own.
> 
> You would use local versions of the Mason components. RT doesn't (at
> this point) have that modular or dynamic of an architecture.

I hoped you weren't going to say that. :) I was looking earlier, to find where exactly the download/with headers links and other extras get assembled and inserted. I couldn't find any of it anywhere. I found ShowHistory and ShowTransaction, but I couldn't find where the text of replies and other transactions gets turned into what you see on the web UI. I must have missed something obvious, but I can't see what.
> 
> It'd be great to have flexibility for users to see what they want in
> the layout - it'd probably be a big-ish undertaking to implement it.
> 
> My ultimate goal, as I've
>> said, is to redo the ticket history section on ticket summary and history
>> pages, to make it easier to read and follow. I have an idea of how I'd make
>> the display I want to see, but how do I also get rid of the default one?
> 
> From:
> 
> https://docs.bestpractical.com/rt/4.4.1/writing_portlets.html
> 
> "Copy /opt/rt4/html/share/SelfService/index.html to
> /opt/rt4/local/html/SelfService/index.html"
> 
> So if you wanted un-callback-able modifications made to your RT, then
> you'd copy, for instance:
> 
> /opt/rt4/html/share/Ticket/Display.html
> 
> to
> 
> /opt/rt4/html/local/Ticket/Display.html
> 
> and then hack on the latter.
> 
> -m




More information about the rt-users mailing list