Hi Mike,

thanks a lot.  This will be of great help.

The "missing link" is now still: Which .dtl file is used for which page? There are "Name" parameters to the Block calls, but no .dtl files with the same names. Is there any documentation I could read about this?

Cheers

    frank


Michiel Beijen wrote:
Hi Frank,

It's maybe more a topic for the dev@ list...

finding the right CSS file is pretty easy: you can turn off the CSS
loader in the sysconfig. This will make sure you get the regular CSS
and not the minified version. After this you can use a tool such as
Firebug to examine the CSS that is active for an object by simply
clicking on it.

Knowing what data fields can be used is a bit more difficult, as it
depends from mask to mask. Basically, you'll need to check what
variables are passed to the Data => parameters in the BuildSelection
and Block calls. Often, you'll find a hash called %Param is passed.
This hash can contain a whole lot of data, depending on the objects
that are called before, such as TicketGet, CustomerGet, etc.

What you can do is, in the Kernel/Modules/MyModule.pm; dump out %Param
to STDERR just before the Block call is made, like this:

 use Data::Dumper;
 warn Dumper (\%Param);
 $Self->{LayoutObject}->Block( ....

now you can check the Apache error log to see the contents of %Param
when the page is requested. You can install Fred (available on our FTP
server under DevelTools) which you can use to display STDERR
conveniently in your web browser window.

--
Mike

On Fri, May 13, 2011 at 5:21 PM, Frank Thommen <[email protected]> wrote:
Hi,

I'd like to change several small layout and output details in OTRS (e.g.
more/different columns in the Dashboard, top-aligned rows and bold ticket
titles in the QueueView etc.).  Finding the right DTL and CSS files usually
requires lots of timeconsuming searching with `find`/`grep`.

Is there an easier way to find out, which DTL and CSS files are used for
which page and which datafields can be used within a specific DTL?  I looked
for this kind of information in the Admin Manual to no avail.

I'm currently using OTRS 3.x on Linux.

Cheers

   frank

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to