Widgets on the dashboard page

English! place to talk about development, programming and coding
Post Reply
rockdale
Znuny newbie
Posts: 4
Joined: 30 Nov 2016, 16:23
Znuny Version: OTRS 5

Widgets on the dashboard page

Post by rockdale »

Hi, all:

I am pretty new to Perl and Template. I have a (probably silly) question on the dashboard page. (AgentDashboardCommon.tt and AgentDashboardCommon.pm). How do all the "ContentSmall" data get feed to the Template. For example, Upcoming Events and OTRS News. I understand how the content inside these boxes get feed the Template (for example, we have AgentDashboardRSSOverview.tt and News.pm for the OTRS news widget and I pretty much understand how it works). But in AgentDashnoardCommon.pm, there is nothing related to "ContentSmall", I understand the widgets are defined in Frameword.xml (for Upcoming Events - it is defined in Ticket.xml) but where and how exactly these widgets get rendered in AgentDashnoardCommon.pm? I was expecting something like this

$Kernel::OM->Get('Kernel::Output::HTML::Layout')->Block(
Name => 'ContentSmall',
Data => {},
);

But I just could not find the missing piece of this puzzle. Can somebody shed some light on this? Thank you very much
-Rockdale
Post Reply