Adding New XML config file !!

English! place to talk about development, programming and coding
Post Reply
IrtazaIjaz
Znuny newbie
Posts: 23
Joined: 19 Mar 2013, 14:39
Znuny Version: 3.2.1
Real Name: Irtaza Ijaz

Adding New XML config file !!

Post by IrtazaIjaz »

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 ..
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Adding New XML config file !!

Post by jojo »

"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
IrtazaIjaz
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 !!

Post by IrtazaIjaz »

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 ...
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Adding New XML config file !!

Post by jojo »

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
IrtazaIjaz
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 !!

Post by IrtazaIjaz »

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 !!
IrtazaIjaz
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 !!

Post by IrtazaIjaz »

jojo where r u buddy !!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Adding New XML config file !!

Post by jojo »

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
IrtazaIjaz
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 !!

Post by IrtazaIjaz »

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 :)
IrtazaIjaz
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 !!

Post by IrtazaIjaz »

??
crythias
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 !!

Post by crythias »

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>
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.
eh... copy the above and make it an XML file in otrs/Kernel/Config/Files/
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
IrtazaIjaz
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 !!

Post by IrtazaIjaz »

ok thank you very much :)
Post Reply