[rt-users] RT Visual Interface Enhancements Enquiry

Ruslan Zakirov ruz at bestpractical.com
Tue Jul 10 14:57:39 EDT 2012


Hi,

RT's file share/html/Elements/Header contains the following line:

$m->callback( %ARGS, CallbackName => 'Head' );

It's the perfect place to insert custom CSS/JS hacks.

On Tue, Jul 10, 2012 at 2:51 PM, Nafiesa Allie <nafiesaa at kromco.co.za> wrote:
> I think I must clarify what I am saying below:
> from what I understand RT4 callbacks are defined in /rt4/share/Elements.  I
> found a number of callbacks there, but not the one I am looking for, viz.
> Header, so I need help to either find it or create it from scratch.
>
> Regards
> Nafiesa
>
> On 10 July 2012 13:36, Nafiesa Allie <nafiesaa at kromco.co.za> wrote:
>>
>> Hi Ruslan
>>
>> I managed to figure out how to successfully create a dirty variant, and it
>> seems to do what I want.  However, I am still struggling to create the
>> callback.
>> " There is a callback in Header file to put any custom javascript on RT
>> pages. "  - I do not find such a callback.
>> I now understand the concept of a callback, but not finding the relevant
>> callback does not help much.  Please could you give me some direction?
>>
>> Regards
>> Nafiesa
>>
>>
>> On 6 July 2012 15:21, Nafiesa Allie <nafiesaa at kromco.co.za> wrote:
>>>
>>> Hi Ruslan
>>>
>>> Thanks so much for your swift response plus the given detail;  I am so
>>> glad that it is possible!  However, I have no idea how to get to the
>>> interface that will enable me to add the new code.  This is the first time I
>>> am wanting to do a customization, and I do not know where to start.  How do
>>> I get to the interface in your screenshot?
>>>
>>> Have a great weekend!
>>> Nafiesa
>>>
>>>
>>> On 5 July 2012 14:53, Ruslan Zakirov <ruz at bestpractical.com> wrote:
>>>>
>>>> On Tue, Jul 3, 2012 at 9:29 AM, Nafiesa Allie <nafiesaa at kromco.co.za>
>>>> wrote:
>>>> > I have already created dashboards with custom searches, but my problem
>>>> > lies
>>>> > with the fact that I cannot get the panels to lie alongside each other
>>>> > as
>>>> > per my example.  RT only allows two lists/charts panels next to each
>>>> > other.
>>>> > How do I overcome this?
>>>>
>>>> With javascript:
>>>>
>>>> jQuery('table.myrt td.boxcontainer >
>>>> div').detach().appendTo('table.myrt > tbody > tr').wrap('<td
>>>> class="boxcontainer" />');
>>>>
>>>> Above is dirty variant, but at least it works in Chrome and
>>>> demonstrates how to start. There is a callback in Header file to put
>>>> any custom javascript on RT pages.
>>>>
>>>> >
>>>> >
>>>> > On 2 July 2012 21:47, Ruslan Zakirov <ruz at bestpractical.com> wrote:
>>>> >>
>>>> >> On Mon, Jul 2, 2012 at 12:42 PM, Nafiesa Allie
>>>> >> <nafiesaa at kromco.co.za>
>>>> >> wrote:
>>>> >> > Great! So where do I start?  I have never fiddled with CSS or JS
>>>> >> > before,
>>>> >> > so
>>>> >> > it will be helpful if you could direct me to a relevant example.
>>>> >>
>>>> >> Start from Dashboards, custom searches and see how close you can get
>>>> >> to what you need.
>>>> >>
>>>> >>
>>>> >>
>>>> >> >
>>>> >> > On 29 June 2012 20:09, Thomas Sibley <trs at bestpractical.com> wrote:
>>>> >> >>
>>>> >> >> On 06/29/2012 10:57 AM, Benjamin Boksa wrote:
>>>> >> >> > I am sure this can be done using RT4 by writing a custom page -
>>>> >> >> > but I
>>>> >> >> > honestly do not know how…
>>>> >> >>
>>>> >> >> Learning the basics of how to create your own page in RT will
>>>> >> >> probably
>>>> >> >> be faster and more efficient than trying to use the REST interface
>>>> >> >> to
>>>> >> >> get all the data and interaction you want.
>>>> >> >>
>>>> >> >> You can probably do most of what you want with a standard
>>>> >> >> dashboard and
>>>> >> >> a bunch of custom CSS and JS that targets it to rearrange as
>>>> >> >> necessary.
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> > --
>>>> >> >
>>>> >> > Groete/Regards
>>>> >> >
>>>> >> > Nafiesa Allie
>>>> >> >
>>>> >> > Kromco (Pty) Ltd
>>>> >> >
>>>> >> > | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e
>>>> >> > nafiesaa at kromco.co.za |
>>>> >> >
>>>> >> > *Important Notice: This e-mail may contain trade secrets or
>>>> >> > privileged,
>>>> >> > undisclosed, or otherwise confidential information.
>>>> >> >
>>>> >> > If you have received this e-mail in error, you are hereby notified
>>>> >> > that
>>>> >> > any
>>>> >> > review, copying, or distribution of it is strictly prohibited.
>>>> >> >
>>>> >> > Please inform us immediately and destroy the original transmittal.
>>>> >> > Thank
>>>> >> > you
>>>> >> > for your cooperation.
>>>> >> >
>>>> >> >
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Best regards, Ruslan.
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> >
>>>> > Groete/Regards
>>>> >
>>>> > Nafiesa Allie
>>>> >
>>>> > Kromco (Pty) Ltd
>>>> >
>>>> > | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za
>>>> > |
>>>> >
>>>> > *Important Notice: This e-mail may contain trade secrets or
>>>> > privileged,
>>>> > undisclosed, or otherwise confidential information.
>>>> >
>>>> > If you have received this e-mail in error, you are hereby notified
>>>> > that any
>>>> > review, copying, or distribution of it is strictly prohibited.
>>>> >
>>>> > Please inform us immediately and destroy the original transmittal.
>>>> > Thank you
>>>> > for your cooperation.
>>>> >
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards, Ruslan.
>>>
>>>
>>>
>>>
>>> --
>>>
>>> Groete/Regards
>>>
>>> Nafiesa Allie
>>>
>>> Kromco (Pty) Ltd
>>>
>>> | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za |
>>>
>>> *Important Notice: This e-mail may contain trade secrets or privileged,
>>> undisclosed, or otherwise confidential information.
>>>
>>> If you have received this e-mail in error, you are hereby notified that
>>> any review, copying, or distribution of it is strictly prohibited.
>>>
>>> Please inform us immediately and destroy the original transmittal. Thank
>>> you for your cooperation.
>>>
>>>
>>
>>
>>
>> --
>>
>> Groete/Regards
>>
>> Nafiesa Allie
>>
>> Kromco (Pty) Ltd
>>
>> | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za |
>>
>> *Important Notice: This e-mail may contain trade secrets or privileged,
>> undisclosed, or otherwise confidential information.
>>
>> If you have received this e-mail in error, you are hereby notified that
>> any review, copying, or distribution of it is strictly prohibited.
>>
>> Please inform us immediately and destroy the original transmittal. Thank
>> you for your cooperation.
>>
>>
>
>
>
> --
>
> Groete/Regards
>
> Nafiesa Allie
>
> Kromco (Pty) Ltd
>
> | t +27[0]21 850-6847 | f +27[0]21 850-6871 | e nafiesaa at kromco.co.za |
>
> *Important Notice: This e-mail may contain trade secrets or privileged,
> undisclosed, or otherwise confidential information.
>
> If you have received this e-mail in error, you are hereby notified that any
> review, copying, or distribution of it is strictly prohibited.
>
> Please inform us immediately and destroy the original transmittal. Thank you
> for your cooperation.
>
>



-- 
Best regards, Ruslan.



More information about the rt-users mailing list