Include Data from DB in Header

English! place to talk about development, programming and coding
Post Reply
tomi
Znuny newbie
Posts: 1
Joined: 11 Aug 2014, 19:44
Znuny Version: 3.3.8

Include Data from DB in Header

Post by tomi »

Hello,

I have read about writing own Modules, but this is not what I need, because I do not want to create a navigation item with an own page.

What I want is to bring some data from the database on a free zone in the header (agents only), near "Logged in as..."
I tried to insert $ENV{somevarname}, $QENV{somevarname}. $QDATA{somevarname} into header.dtl and I tried to insert in a lot of pm-files $QDATA = "value", but the header.dtl never gets parsed.
At the moment I use an external Perl-Script with own database-connection and Javasript/ajax to bring the information to otrs. My problem is not the query or perl, but the template-system of otrs.

With regards

Tom
Post Reply