Add a new icon on ticketzoom page

English! place to talk about development, programming and coding
Post Reply
nicole19890107
Znuny newbie
Posts: 31
Joined: 24 Jun 2013, 22:30
Znuny Version: 3.2.6

Add a new icon on ticketzoom page

Post by nicole19890107 »

Hello,
I want to add an icon to this page, like these existed icons, Image how can I do it? I checked the AgentTickeZoom.dtl, I can find almost all information on that page except those icons. So if i want to add an icon to that part, which file should I change?
Thank you
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add a new icon on ticketzoom page

Post by jojo »

please describe in a deeper way what you want to achieve.

The Ticket Menu is controlled by config. Depending on the needed action you also woul need further development.

I strongly suggest that you invest some of your support calls or some onsite consulting!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
nicole19890107
Znuny newbie
Posts: 31
Joined: 24 Jun 2013, 22:30
Znuny Version: 3.2.6

Re: Add a new icon on ticketzoom page

Post by nicole19890107 »

ok in a deeper way: I want to add an icon in the area I highlight with yellow color
Image\

Then i want use URL to transfer parameters to another page, just like transfer the information automatically from one page to another one. such as from :Image
to
Image
I know how to transfer them with url. Now I just need to figure out how can I add that icon then connect it with the url. English is not my first language, probably I didnt express my point clearly, but this is the forum for OTRS developers right? I just post my question because I need help. There's something wrong with my behavior?
Thank you anyways
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add a new icon on ticketzoom page

Post by jojo »

"Links" need to be registered in Config (they are called modules)

Please have a look here: http://doc.otrs.org/developer/3.1/en/ht ... end-module
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Add a new icon on ticketzoom page

Post by crythias »

What information do you want to show?
Where do you want to show it?
Where is the information sourced?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
nicole19890107
Znuny newbie
Posts: 31
Joined: 24 Jun 2013, 22:30
Znuny Version: 3.2.6

Re: Add a new icon on ticketzoom page

Post by nicole19890107 »

Thank you for replying, the information i want to show is some information of tickets, such as Type, State, Queue, CustomerID.
I want to show it to another page, this one(this page doesnt belong to otrs, so I use url to transfer parameters) Image
All information belongs to the database of otrs i think.
Thank you
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Add a new icon on ticketzoom page

Post by crythias »

"How do I add a link to another (external) page on AgentTicketZoom Menu?"

Right click and inspect element where you think you want the link

HTML/Standard/AgentTicketZoom.dtl:

Code: Select all

<div class="ActionRow">
                <ul class="Actions">
<!-- dtl:block:TicketMenu -->
                    <li>
                        <a href="$Env{"Baselink"}$Data{"Link"}" class="$QData{"Class"}" $Data{"LinkParam"} title="$Text{"$Data{"Description"}"}">$Text{"$Data{"Name"}"}</a>
                    </li>
<!-- dtl:block:TicketMenu -->
<!-- dtl:block:MoveLink -->
                    <li class="$QData{"Class"}">
                        <form title="$Text{"Move ticket to a different queue"}" action="$Env{"CGIHandle"}" method="post">
                            <input type="hidden" name="Action" value="AgentTicketMove"/>
                            <input type="hidden" name="QueueID" value="$QData{"QueueID"}"/>
                            <input type="hidden" name="TicketID" value="$QData{"TicketID"}"/>
                            <label for="DestQueueID" class="InvisibleText">$Text{"Change queue"}:</label>
                            $Data{"MoveQueuesStrg"}
                        </form>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
    $('#DestQueueID').bind('change', function (Event) {
        $(this).closest('form').submit();
    });
//]]></script>
<!-- dtl:js_on_document_complete -->
                    </li>
<!-- dtl:block:MoveLink -->
<!-- dtl:block:MoveForm -->
                    <li>
                        <a href="$Env{"Baselink"}Action=AgentTicketMove;TicketID=$LQData{"TicketID"};" class="AsPopup PopupType_TicketAction" title="$Text{"Change Queue"}">$Text{"Change Queue"}</a>
                    </li>
<!-- dtl:block:MoveForm -->
                </ul>
                <div class="Clear"></div>
            </div>
add a link, modify the last of this section:

Code: Select all

<!-- dtl:block:MoveForm -->
<!-- my personal link -->
<li><a href="http://some/path/file.html?queryvariable=$LQData{"TicketID"};">My External Site. This is a label</a></li>
<!-- end my personal link -->
                </ul>
                <div class="Clear"></div>
            </div>
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
nicole19890107
Znuny newbie
Posts: 31
Joined: 24 Jun 2013, 22:30
Znuny Version: 3.2.6

Re: Add a new icon on ticketzoom page

Post by nicole19890107 »

Hi crythia,
I general did it, some parts of the codes work,but others don't. Can you help me to check the codes, because I keep trying so many times, they still dont work.
The information i want to show is:Ticket ID,Subject, Create On, Create By, Owner, Start Time and End Time(they are added by me through dynamicfield). I can show Ticket ID and Create On now, for others information, they dont show up thought I inspect those element.
Image
Codes are:

Code: Select all

<!-- my personal link -->
<li><a href=https://205.189.33.65/testcmdb/notification.php?owner=$QData{"UserLogin"}&ticket_id=$Data{"TicketID"}&subject=$Data{"Subject"}&createTime=$TimeShort{"$QData{"Created"}"}&decription=$Data{"Description"}>My External Site. This is a label</a>
</li>
<!-- end my personal link -->
For the dynamicfield(start time and end time), i didnt find the elements for them :(
Thank you
Post Reply