[SOLVED] Queue icons (nice to have)

Moderator: crythias

Locked
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

[SOLVED] Queue icons (nice to have)

Post by HervE »

Hello,

To make my OTRS both more fun and more visual, I'd like to display a different icon for each different queue.

On the dashboard, this would help to spot in one glance which ticket belongs to which queue... without taking too much space to display the whole queue name!

Did anybody already think up anything like that?

Regards,
HervE
Last edited by HervE on 16 Jul 2011, 21:33, edited 1 time in total.
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Queue icons (nice to have)

Post by crythias »

doesn't seem impossible. First guess:
<img src="http://path/to/images/$QData{"Queue"}.jpg" alt="$QData{"Queue"}" />
though you'll have to be cognizant of subqueues (windows doesn't particularly like colons) and spaces in your naming scheme.
I haven't tried QueueID, but if it works, it'd be safer because it's a number.
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
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Queue icons (nice to have)

Post by HervE »

Hello,

Thanks for your answer, I managed to do it!

I had to use Frontend::ImagePath, and all went well with queue names (didn't try IDs). I don't use subqueues.
Even queue names with spaces or dots work. (I just had to rename a queue whose name had a '/' sign inside.)

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
fondofotrs
Znuny newbie
Posts: 42
Joined: 13 Jan 2011, 09:40
Znuny Version: 3.04

Re: [SOLVED] Queue icons (nice to have)

Post by fondofotrs »

where did you define it HervE? do you have to change anything in dtl?
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: [SOLVED] Queue icons (nice to have)

Post by HervE »

Yes, sure.

I inserted the following code line in Kernel\Output\HTML\Standard\AgentDashboardTicketGeneric.dtl:

Code: Select all

<td width="20px"><img src="$Config{"Frontend::ImagePath"}icons/$QData{"Queue"}.png" alt="$QData{"Queue"}" /></td>
and of course created the related 18x18 .png files in the mentioned icons folder.


...By the way, if someone knows a (free) tool to easily manage the transparency of these .png files, I take it! :D

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [SOLVED] Queue icons (nice to have)

Post by crythias »

gimp? :)
You might also try http://icofx.ro/
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
fondofotrs
Znuny newbie
Posts: 42
Joined: 13 Jan 2011, 09:40
Znuny Version: 3.04

Re: [SOLVED] Queue icons (nice to have)

Post by fondofotrs »

thank you HervE.
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: [SOLVED] Queue icons (nice to have)

Post by HervE »

You're welcome.
And I just added this img tag to Kernel\Output\HTML\Standard\AgentTicketZoom.dtl too.

HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Locked