Add a new widget/Classification on dashboard

English! place to talk about development, programming and coding
Post Reply
masoodfarooq91
Znuny newbie
Posts: 60
Joined: 03 Jul 2014, 11:20
Znuny Version: version3.3
Real Name: masood farooq malik
Company: expertflow

Add a new widget/Classification on dashboard

Post by masoodfarooq91 »

I have already posted this question in general category
viewtopic.php?f=62&t=25860
But i think it is a developer's category, so i am posting it here again.
I want to add a new widget ,, i have created a new config file but it is not showing any change, instead it is showing error.
I have created a new file in the path "C:\otrs\OTRS\Kernel\Config\Files " and named it MyConfig.xml.
After saving the file, when i login OTRS as admin, it didn't showed a new widget. When i clicked Admin>SysConfig, it redirects to a new page with the following error written "Script failed to send data..."

Here is the content of MyConfig.xml:

Code: Select all

<? xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Application">
 <ConfigItem Name="DashboardBackend###1000-PendingExpertFlow" 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>
                <Item Key="Title">Pending Expertflow</Item>
                <Item Key="Description">All tickets pending by expertflow</Item>
                <Item Key="Attributes">StateType=open;</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>
                <Item Key="DefaultColumns">
                    <Hash>
                        <Item Key="Age">2</Item>
                        <Item Key="Changed">1</Item>
                        <Item Key="CustomerID">1</Item>
                        <Item Key="CustomerName">2</Item>
                        <Item Key="CustomerUserID">1</Item>
                        <Item Key="EscalationResponseTime">1</Item>
                        <Item Key="EscalationSolutionTime">1</Item>
                        <Item Key="EscalationTime">1</Item>
                        <Item Key="EscalationUpdateTime">1</Item>
                        <Item Key="TicketNumber">2</Item>
                        <Item Key="Lock">1</Item>
                        <Item Key="Owner">1</Item>
                        <Item Key="PendingTime">1</Item>
                        <Item Key="Queue">1</Item>
                        <Item Key="Responsible">2</Item>
                        <Item Key="Priority">1</Item>
                        <Item Key="Service">1</Item>
                        <Item Key="State">1</Item>
                        <Item Key="SLA">1</Item>
                        <Item Key="Title">2</Item>
                        <Item Key="Type">1</Item>
                    </Hash>
                </Item>
            </Hash>
        </Setting>
    </ConfigItem>
</otrs_config>
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Add a new widget/Classification on dashboard

Post by reneeb »

There should be *no* space between "<?" and "xml"
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply