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
[SOLVED] Queue icons (nice to have)
Moderator: crythias
[SOLVED] Queue icons (nice to have)
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
-
- 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)
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.
<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
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
Re: Queue icons (nice to have)
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
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
-
- Znuny newbie
- Posts: 42
- Joined: 13 Jan 2011, 09:40
- Znuny Version: 3.04
Re: [SOLVED] Queue icons (nice to have)
where did you define it HervE? do you have to change anything in dtl?
Re: [SOLVED] Queue icons (nice to have)
Yes, sure.
I inserted the following code line in Kernel\Output\HTML\Standard\AgentDashboardTicketGeneric.dtl:
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!
Regards,
HervE
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>
...By the way, if someone knows a (free) tool to easily manage the transparency of these .png files, I take it!

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
-
- 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)
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
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
-
- Znuny newbie
- Posts: 42
- Joined: 13 Jan 2011, 09:40
- Znuny Version: 3.04
Re: [SOLVED] Queue icons (nice to have)
thank you HervE.
Re: [SOLVED] Queue icons (nice to have)
You're welcome.
And I just added this img tag to Kernel\Output\HTML\Standard\AgentTicketZoom.dtl too.
HervE
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