Adding New XML config file !!
-
- Znuny newbie
- Posts: 23
- Joined: 19 Mar 2013, 14:39
- Znuny Version: 3.2.1
- Real Name: Irtaza Ijaz
Adding New XML config file !!
DashboardTicketGeneric.pm is the perl module that feeds the data to the AgentDashboardTicketGeneric.dtl & It receives the data about which tickets to select from its XML configuration (SysConfig).......
Please tell me how to add another widget to the dashboard just by adding a new XML config file with different config settings for DashbaordTicketGeneric.
Thanks ..
Please tell me how to add another widget to the dashboard just by adding a new XML config file with different config settings for DashbaordTicketGeneric.
Thanks ..
Re: Adding New XML config file !!
Have a look here http://blog.otrs.org/2010/08/01/even-mo ... sysconfig/
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 23
- Joined: 19 Mar 2013, 14:39
- Znuny Version: 3.2.1
- Real Name: Irtaza Ijaz
Re: Adding New XML config file !!
ok that is a new RSS XML file, but how i can make new configuration for DashboardTicketGeneric.pm with file.... is configuration is already done in that file ?
or it will be done separately ...
or it will be done separately ...
Re: Adding New XML config file !!
please describe your needs in a more detailed way
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 23
- Joined: 19 Mar 2013, 14:39
- Znuny Version: 3.2.1
- Real Name: Irtaza Ijaz
Re: Adding New XML config file !!
Basically i want to Add a new widget to the end of ( NewTickets/need to be answers ) section....
i don't know to much about XML but here what i understand :
1. The ( DashboardTicketGeneric.pm ) is feeding data to the section of ( AgentDashboard.dtl ) shown below :
<div id="Dashboard$QData{"Name"}">
$Data{"Content"}
</div>
2. And ( AgentDashboard.dtl ) is giving or calling the Div section of ( AgentDashboardTicketGeneric.dtl ) in the :
<table class="DataTable">
<tr>
<td>bla bla </td>
</tr>
</table>
3. Can u please tell me from where the data is actually printing in AgentDashboardTicketGeneric.dtl, which file is giving the data to the AgentDashboardTicketGeneric.dtl
or ( DashboardTicketGeneric.pm ) call any loop to the end of each ticket to print on the dashboard using any ( .DTL ) file.
4. And Which XML in (Kernel/Config/Files) to Related to ( DashboardTicketGeneric.pm ) & how it is configure with it .... i know XML stores the data in text form in it.
Please tell me I can Add another Widget or Section to the End of Dashboard and what actually i have to do ...
i will be very Thankful of u guys if u solve my problem !!
i don't know to much about XML but here what i understand :
1. The ( DashboardTicketGeneric.pm ) is feeding data to the section of ( AgentDashboard.dtl ) shown below :
<div id="Dashboard$QData{"Name"}">
$Data{"Content"}
</div>
2. And ( AgentDashboard.dtl ) is giving or calling the Div section of ( AgentDashboardTicketGeneric.dtl ) in the :
<table class="DataTable">
<tr>
<td>bla bla </td>
</tr>
</table>
3. Can u please tell me from where the data is actually printing in AgentDashboardTicketGeneric.dtl, which file is giving the data to the AgentDashboardTicketGeneric.dtl
or ( DashboardTicketGeneric.pm ) call any loop to the end of each ticket to print on the dashboard using any ( .DTL ) file.
4. And Which XML in (Kernel/Config/Files) to Related to ( DashboardTicketGeneric.pm ) & how it is configure with it .... i know XML stores the data in text form in it.
Please tell me I can Add another Widget or Section to the End of Dashboard and what actually i have to do ...
i will be very Thankful of u guys if u solve my problem !!
-
- Znuny newbie
- Posts: 23
- Joined: 19 Mar 2013, 14:39
- Znuny Version: 3.2.1
- Real Name: Irtaza Ijaz
Re: Adding New XML config file !!
jojo where r u buddy !!
Re: Adding New XML config file !!
just analyze the given dashlets. Read the developer manual or buy some professional help.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 23
- Joined: 19 Mar 2013, 14:39
- Znuny Version: 3.2.1
- Real Name: Irtaza Ijaz
Re: Adding New XML config file !!
But Just tell me 1 thing which ( FILE or some Code Section ) is giving Data to DashboardTicketGeneric.pm ? Any help from ur side on it will make my Life easier 

-
- Znuny newbie
- Posts: 23
- Joined: 19 Mar 2013, 14:39
- Znuny Version: 3.2.1
- Real Name: Irtaza Ijaz
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Adding New XML config file !!
jojo told you to look at the RSS XML file because it was an example of how to add a widget to the dashboard.
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<otrs_config version="1.0" init="CustomRSS">
<ConfigItem Name="DashboardBackend###0411-RSS" Required="0" Valid="0">
<Description Lang="en">Parameters for the dashboard backend. "Limit" are default shown entries. "Group" are used to restriced access to the plugin (e. g. Group: admin;group1;group2;). "Default" means if the plugin is enabled per default or if the user needs to enable it manually. "CacheTTL" means the cache time in minutes for the plugin.</Description>
<Description Lang="de">Parameter fuer das Dashboard Backend. "Limit" bedeutet die default angezeigten Eintraege. "Group" ist verwendet um den Zugriff auf das Plugin einzuschraenken (z. B. Group: admin;group1;group2;). ""Default" bedeutet ob das Plugin per default aktiviert ist oder ob dies der Anwender manuell machen muss. "CacheTTL" ist die Cache-Zeit in Minuten nach der das Plugin erneut aufgerufen wird.</Description>
<Group>Framework</Group>
<SubGroup>Frontend::Agent::Dashboard</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::DashboardRSS</Item> ### This is the thing that's being called
<Item Key="Title">OTRS News</Item>
<Item Key="Description"></Item>
<Item Key="URL">http://otrs.org/rss/</Item> ### This and others below are parameters that the thing uses
<Item Key="Block">ContentSmall</Item>
<Item Key="Limit">5</Item>
<Item Key="Group"></Item>
<Item Key="Default">1</Item>
<Item Key="CacheTTL">360</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Application">
<ConfigItem Name="DashboardBackend###0120-TicketNew" Required="0" Valid="1">
<Description Translatable="1">Parameters for the dashboard backend of the new tickets overview of the agent interface. "Limit" is the number of entries shown by default. "Group" is used to restrict the access to the plugin (e. g. Group: admin;group1;group2;). "Default" determines if the plugin is enabled by default or if the user needs to enable it manually. "CacheTTLLocal" is the cache time in minutes for the plugin.</Description>
<Group>Ticket</Group>
<SubGroup>Frontend::Agent::Dashboard</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::DashboardTicketGeneric</Item>### the thing that runs
<Item Key="Title">New Tickets</Item>
<Item Key="Description">All new tickets, these tickets have not been worked on yet</Item>
<Item Key="Attributes">StateType=new;</Item>
<Item Key="Filter">All</Item>
<Item Key="Time">Age</Item>
<Item Key="Limit">10</Item>
<Item Key="Permission">rw</Item>
<Item Key="Block">ContentLarge</Item>
<Item Key="Group"></Item>
<Item Key="Default">1</Item>
<Item Key="CacheTTLLocal">0.5</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>
eh... copy the above and make it an XML file in otrs/Kernel/Config/Files/IrtazaIjaz wrote:Please tell me how to add another widget to the dashboard just by adding a new XML config file with different config settings for DashbaordTicketGeneric.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 23
- Joined: 19 Mar 2013, 14:39
- Znuny Version: 3.2.1
- Real Name: Irtaza Ijaz
Re: Adding New XML config file !!
ok thank you very much 
