Mailing List Archive

[phish?] Re: clarification on callbacks
On Wed, Oct 12, 2016 at 3:53 PM, Alex Hall <ahall@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.

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
---------
RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017
Re: [phish?] Re: clarification on callbacks [ In reply to ]
> On Oct 12, 2016, at 21:37, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:
>
> On Wed, Oct 12, 2016 at 3:53 PM, Alex Hall <ahall@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

---------
RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017
Re: [phish?] Re: clarification on callbacks [ In reply to ]
On Wed, Oct 12, 2016 at 8:44 PM, Alex Hall <ahall@autodist.com> wrote:
>
>> 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.

You could always get (by paying) BPS to make the modifications to
upstream - then you'd get something that is supported for the future
and the community would benefit by getting new functionality.

-m
---------
RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017