Adding a new section in tickets display

Hi,

I would like to a new section with certain columns & rows. Similar like
basics or people section, i am thinking of adding a new section for Ticket
display.

I understand like, i have to add required tables to database. But which is
the best way for showing the new section, allowing the user to add, edit,
delete
to the new section - which part of the code i should look at.

So far, i came to know that, i have to write required callbacks, edit HTML
files, things like that.

But i would like to know what are the files i should look at ? What is the
best method ? Is there any official documentation available ? A normal user
who knows perl can do it ? or not ?

Thanks for any of your reply.

Cheers.
Moorthy.

Hi,

I’m pretty sure rt-users@ list can help you better with first steps in
customizing RT. Ccing it,
instead of devel list. Comments inlined below.

Hi,
I would like to a new section with certain columns & rows. Similar like
basics or people section, i am thinking of adding a new section for Ticket
display.

That whole information block rendered in
html/Ticket/Elements/ShowSummary, as far as I recall
it has 4 callbacks for all corners of the block to put new smaller
boxes with info.

I understand like, i have to add required tables to database. But which is
the best way for showing the new section, allowing the user to add, edit,
delete to the new section - which part of the code i should look at.

Do you really need a new table? RT have custom fields and attributes.

So far, i came to know that, i have to write required callbacks, edit HTML
files, things like that.
But i would like to know what are the files i should look at ? What is the
best method ? Is there any official documentation available ? A normal user
who knows perl can do it ? or not ?

http://requesttracker.wikia.com/wiki/Customizing is good start.

Thanks for any of your reply.
Cheers.
Moorthy.


RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA — September 26 & 27, 2011
  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Melbourne VIC, Australia — November 28 & 29, 2011
  • Barcelona, Spain — November 28 & 29, 2011
    List info: The rt-devel Archives

Best regards, Ruslan.

Hi,

Thanks for the reply.

I spent sometime with the ShowSummary file. But no success ! I dont know how
to edit the file. I started learning HTML::Mason, so that I can add a new
section.

But anyway i would like to get ideas from somebody who has did it already !

How can i add a new custom section ?, through Which i have to show ‘new
section’ when the user views the ticket, and he should be allowed to add,
edit, delete content from that section as similar as dates or people
section.

Do i have to add HTML code or perl code ? What is the structure, which files
i have to edit Kindly let me know.

Thanks
Moorthy

Hi,
Thanks for the reply.
I spent sometime with the ShowSummary file. But no success ! I dont know how
to edit the file. I started learning HTML::Mason, so that I can add a new
section.
But anyway i would like to get ideas from somebody who has did it already !

Did it several times. ShowSummary has code similar to the folowing:

<&| /Widgets/TitleBox, title => loc('The Basics'),
    class => 'ticket-info-basics',
&><& /Ticket/Elements/ShowBasics, Ticket => $Ticket &></&>

Copy it. See that ShowBasics appears twice on the page. Copy
ShowBasics file. Adjust, see changes and so on.

How can i add a new custom section ?, through Which i have to show ‘new
section’ when the user views the ticket, and he should be allowed to add,
edit, delete content from that section as similar as dates or people
section.

May be you’re talking about menu. Are you?

Do i have to add HTML code or perl code ? What is the structure, which files
i have to edit Kindly let me know.

If you need some sort of editor for custom data then for sure you’ll
need to write Mason, HTML and perl code.

Thanks
Moorthy

Best regards, Ruslan.

Hi

Thanks for your reply & time.

I too tried copying a section and found that it does not got changed
anything in the front end. Even deleted a couple of lines, refresh page -
restart apache, and found no change.

As i was editing the main flow very first time, i was not aware of the
DevelMode, and caches… Finally got it working with the following pages
help…
http://requesttracker.wikia.com/wiki/CleanMasonCache
http://requesttracker.wikia.com/wiki/DevelMode

Now doing good with the development. And one other question, as am adding a
new section to ticket display page ! I would like to know, is there any way
i can find/understand the normal flow…

May be is there a way to go in debug mode, and find the flow of ‘how a
ticket display works?’ Or is there any document or flow chart explains …
Basically i would like to know how does the general flow goes, and plug my
new section in to it !

Hope the above explanations are clear ?! Or else, when adding a new feature
which is very similar to an existing - knowing about it would help in
developing this too !

Any help is very much appreciated.

Thanks
Moorthy.On Mon, Aug 22, 2011 at 11:14 PM, Ruslan Zakirov ruz@bestpractical.comwrote:

On Mon, Aug 22, 2011 at 9:02 PM, SathiyaMoorthy SP jobs.sathiya@gmail.com wrote:

Hi,
Thanks for the reply.
I spent sometime with the ShowSummary file. But no success ! I dont know
how
to edit the file. I started learning HTML::Mason, so that I can add a new
section.
But anyway i would like to get ideas from somebody who has did it already
!

Did it several times. ShowSummary has code similar to the folowing:

<&| /Widgets/TitleBox, title => loc(‘The Basics’),
class => ‘ticket-info-basics’,
&><& /Ticket/Elements/ShowBasics, Ticket => $Ticket &></&>

Copy it. See that ShowBasics appears twice on the page. Copy
ShowBasics file. Adjust, see changes and so on.

How can i add a new custom section ?, through Which i have to show ‘new
section’ when the user views the ticket, and he should be allowed to add,
edit, delete content from that section as similar as dates or people
section.

May be you’re talking about menu. Are you?

Do i have to add HTML code or perl code ? What is the structure, which
files
i have to edit Kindly let me know.

If you need some sort of editor for custom data then for sure you’ll
need to write Mason, HTML and perl code.

Thanks
Moorthy


Best regards, Ruslan.

Hi
Thanks for your reply & time.
I too tried copying a section and found that it does not got changed anything in the front
end. Even deleted a couple of lines, refresh page - restart apache, and found no change.
As i was editing the main flow very first time, i was not aware of the DevelMode, and caches…
Finally got it working with the following pages help…
[1]http://requesttracker.wikia.com/wiki/CleanMasonCache
[2]http://requesttracker.wikia.com/wiki/DevelMode
Now doing good with the development. And one other question, as am adding a new section to
ticket display page ! I would like to know, is there any way i can find/understand the normal
flow…
May be is there a way to go in debug mode, and find the flow of ‘how a ticket display works?’
Or is there any document or flow chart explains … Basically i would like to know how does
the general flow goes, and plug my new section in to it !
Hope the above explanations are clear ?! Or else, when adding a new feature which is very
similar to an existing - knowing about it would help in developing this too !
Any help is very much appreciated.

Configuring MasonX::Profiler, as documented in RT_Config.pm, will show
you the template load order.

-kevin