Issues understanding output filter module well

English! place to talk about development, programming and coding
Post Reply
hkais
Znuny wizard
Posts: 357
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Issues understanding output filter module well

Post by hkais »

As of the documentation a better solution would be to output html changes via a output filter.

my Issue is, that I cannot follow the documentation. I understood, that there would be added a javascript hook on page ready status to modify the DOM
Hope I understood this point.

The second unclear point is the lack of finding the examples in the code based on the doc provided.

if we consider this configuration

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="2.0" init="Config">
    <Setting Name="Ticket::Frontend::AgentTicketZoom###Widgets###0075-MyExtension" Required="0" Valid="1">
        <Description Translatable="1">AgentTicketZoom widget that ...</Description>
        <Navigation>Frontend::Agent::View::TicketZoom</Navigation>
        <Value>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::TicketZoom::MyExtesion</Item>
                <Item Key="Location">Sidebar</Item>
            </Hash>
        </Value>
    </Setting>
Is there a full documentation of the available Values for the Output filter configuration?

So here I have taken a look on this extension and now I am confused since I do not find the mapping of Sidebar to the final destination.

The example here https://doc.znuny.org/znuny/developer/e ... ter-module is referring

Code: Select all

CustomerTable
in

Code: Select all

AgentTicketZoom.tt
but I cannot clearly find the corresponding reference.

So question is:
is the referred a html css id?
If not, what is it specifically? And where to find all the references / locations?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
hkais
Znuny wizard
Posts: 357
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Issues understanding output filter module well

Post by hkais »

no hints/help here?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
root
Administrator
Posts: 4232
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Issues understanding output filter module well

Post by root »

Hi,

What is your goal here? For a widget on the right side in ATZoom, no output filter is required.
You need the registration (XML), a TemplateToolkit file and a Perl module passing data into the template. Check TicketInformation as an example.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
hkais
Znuny wizard
Posts: 357
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Issues understanding output filter module well

Post by hkais »

root wrote: 02 Jun 2025, 14:14 What is your goal here? For a widget on the right side in ATZoom, no output filter is required.
my goal is to try to understand the output filter and to understand how to and where to use it.

How to integrate the module into the UI is clear.

But it is not clear in what cases and why the output filter is required. Therefore I tried to implement something to understand it better. I checked the documentation, but it seems the documentation is outdated and inconsistent to this topic.
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
root
Administrator
Posts: 4232
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Issues understanding output filter module well

Post by root »

hkais wrote: 13 Jun 2025, 16:41
root wrote: 02 Jun 2025, 14:14 What is your goal here? For a widget on the right side in ATZoom, no output filter is required.
my goal is to try to understand the output filter and to understand how to and where to use it.
I was just referring to the code you posted, and I assumed you wanted a sidebar widget. If we're talking about output filter: I'm out.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply