How to modify output HTML?

English! place to talk about development, programming and coding
Post Reply
cilap
Znuny newbie
Posts: 14
Joined: 08 Feb 2022, 13:58
Znuny Version: see in post
Real Name: Darko

How to modify output HTML?

Post by cilap »

is someone around to briefly explain - or better to point me to example code?

I would like to implement a option to highlight specific rows with a configurable color in:
- search results
- ticket views
- Dashboard

e.g. lets assume I create a new status "clientReplied" I would like to have an option to configure a specific color to highlight the given row in the results with a configured color.

Sadly I have no idea from the software design of znuny to decide how to integrate? Is there any serverside html rendering chain or filters, in which I could integrate such a behavior.
E.g. I would like to attach either a specific html attribute or even better append a specific CSS class.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: How to modify output HTML?

Post by reneeb »

I'd use https://opar.perl-services.de/dist/Tick ... oked-6.0.5 for that. If you want to highlight rows based on the state, you have to change some settings in the system configuration:

* Hook::Generic::Attribute -> State
* Hook::Generic -> add the states and colors
* TicketOverview::Hooks -> Key: 1001, Value Kernel::System::TicketOverview::Hooks::Generic
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply