CustomerTicketOverview

Moderator: crythias

Locked
chambles
Znuny newbie
Posts: 2
Joined: 07 Feb 2013, 18:43
Znuny Version: 3.1.10
Real Name: Cham
Company: HCIG

CustomerTicketOverview

Post by chambles »

Hi,
I hope someone can help me. I’m trying to amend the customer interface and have had mixed success.
I’ve managed to add a field (Queue) to the interface, (italics code) but our customers also want to see the yellow star (bold code) when an article is unread against a ticket. I’ve managed to add the field and called it ‘Unread Articles’ (it’s next to TICKET# column) but unfortunately no star. I've tried New Articles and Unread Articles as per various different places in other .dtl and .pm files, all to no avail.
I’m not a programmer or script writer (guess that's obvious!) and have been unable to match the ‘New Articles’ column that appears in the Agents Status and Queue views to anything I can edit in the Customer side.
Please let me know if this is possible – see code below.
Any help MUCH appreciated

Cheers
new born Newbie

# --
# CustomerTicketOverview.dtl - html for ticket status view (all tickets)
# Copyright (C) 2001-2011 xxx, http://otrs.org/
# --
# $Id: CustomerTicketOverview.dtl,v 1.5 2011/12/02 12:04:42 mb Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
<div id="MainBox" class="TicketView ARIARoleMain $Config{"Ticket::Frontend::CustomerTicketOverviewSortable"}">
<!-- dtl:block:Filled -->
<div class="ActionRow">
<ul class="Filter Tabs">
<!-- dtl:block:FilterHeader -->
<li class="$QData{"ClassLI"}">
<a class="$QData{"ClassA"}" href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=$Env{"Subaction"};Filter=$LQData{"Filter"};SortBy=$LQData{"SortBy"};OrderBy=$LQData{"OrderBy"};">
$Text{"$Data{"Name"}"} ($QData{"Count"})
</a>
</li>
<!-- dtl:block:FilterHeader -->
<li class="Clear"></li>
</ul>
<div class="Tabs Pagination">
$Data{"SiteNavBar"}
</div>
<div class="Clear"></div>
</div>
<div class="Content">
<table class="Overview">
<thead>
<tr>

<th class="Ticket $LQData{"TicketSort"}">
<a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=$Env{"Subaction"};SortBy=Ticket;OrderBy=$LQData{"OrderBy"};Filter=$LQData{"Filter"}">
$Config{"Ticket::Hook"}
</a>
</th>
<th class="Title $LQData{"TitleSort"}">
<a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=$Env{"Subaction"};SortBy=Title;OrderBy=$LQData{"OrderBy"};Filter=$LQData{"Filter"}">
$Text{"Title"}
</a>
</th>
#<!-- CBS code 07-02-2013 -->
<th class="UnreadArticles"><a class="UnreadArticles" href="#" title="$Text{"New articles"}"><span class="UnreadArticles"></span></a></th>
#<!-- END CBS code 07-02-2013 -->


#<!-- CBS code 30-01-2013 -->
<th class="Queue $LQData{"QueueSort"}">
<a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=$Env{"Subaction"};SortBy=Queue;OrderBy=$LQData{"OrderBy"};Filter=$LQData{"Filter"}">
$Text{"Queue"}
</a>
</th>
#<!-- END CBS code 30-01-2013 -->


<th class="State $LQData{"StateSort"}">
<a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=$Env{"Subaction"};SortBy=State;OrderBy=$LQData{"OrderBy"};Filter=$LQData{"Filter"}">
$Text{"State"}
</a>
</th>
<th class="Age $LQData{"AgeSort"}">
<a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=$Env{"Subaction"};SortBy=Age;OrderBy=$LQData{"OrderBy"};Filter=$LQData{"Filter"}">
$Text{"Age"}
</a>
</th>
</tr>
</thead>
<tbody>

<!-- dtl:block:Record -->
<tr title="$QData{"TicketNumber"}" class="MasterAction">

<td class="Ticket">
<a href="$Env{"Baselink"}Action=CustomerTicketZoom;TicketNumber=$LQData{"TicketNumber"}" class="MasterActionLink">$QData{"TicketNumber"}</a>
</td>
<td class="Title">
<div>
<h2>$QData{"Subject","60"}</h2>
&nbsp;-&nbsp; $QData{"Body","200"}
</div>
</td>
#<!-- CBS code 07-02-2013 -->

<td class="$QData{"Class"} UnreadArticles Fixed NonTextContent">
<!-- dtl:block:TreeItemNewArticle -->
<span class="$QData{"Class"}" title="$Text{"New Article!"}">$Text{"New Article!"}</span>
<!-- dtl:block:TreeItemNewArticle -->
<!-- dtl:block:TreeItemNoNewArticle -->
<span class="NoContent"></span>
<!-- dtl:block:TreeItemNoNewArticle -->
</td>

#<!-- END CBS code 07-02-2013 -->

#<!-- CBS code 30-01-2013 -->
<td class="Queue" title="$QData{"Queue"}"}">$QData{"Queue"}</td>
#<!-- END CBS code 30-01-2013 -->


<td class="Status" title="$Text{"$Data{"State"}"}">$Text{"$Data{"State"}"}</td>
<td class="Age" title="$TimeShort{"$Data{"Created"}"}">$QData{"Age","20"}</td>
</tr>
<!-- dtl:block:Record -->
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
$('.MasterAction').bind('click', function (Event) {
var $MasterActionLink = $(this).find('.MasterActionLink');
// only act if the link was not clicked directly
if (Event.target !== $MasterActionLink.get(0)) {
window.location = $MasterActionLink.attr('href');
return false;
}
});
//]]></script>
<!-- dtl:js_on_document_complete -->
</tbody>
</table>
</div>
<!-- dtl:block:FilterFooter -->
<div id="BottomActionRow" class="ActionRow BigButtons">
<ul class="Tabs Filter">
<!-- dtl:block:FilterFooterItem -->
<li class="$QData{"ClassLI"}">
<a class="$QData{"ClassA"}" href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=$Env{"Subaction"};Filter=$LQData{"Filter"};SortBy=$LQData{"SortBy"};OrderBy=$LQData{"OrderBy"};">
$Text{"$Data{"Name"}"} ($QData{"Count"})
</a>
</li>
<!-- dtl:block:FilterFooterItem -->
<li class="Clear"></li>
</ul>
<div class="Tabs Pagination">
$Data{"SiteNavBar"}
</div>
<div class="Clear"></div>
</div>
<!-- dtl:block:FilterFooter -->
<!-- dtl:block:Filled -->

<!-- dtl:block:Empty -->
<div class="Placeholder">
<!-- dtl:block:EmptyDefault -->
<h2>$Text{"Welcome!"}</h2>
<p>
$Text{"Please click the button below to create your first ticket."}
</p>
<a class="Button" href="$Env{"Baselink"}Action=CustomerTicketMessage">$Text{"Create your first ticket"}</a>
<!-- dtl:block:EmptyDefault -->
<!-- dtl:block:EmptyCustom -->
<h2>$QData{"Title"}</h2>
<p>
$QData{"Text"}
</p>
<a class="Button" href="$Env{"Baselink"}Action=CustomerTicketMessage">$QData{"Button"}</a>
<!-- dtl:block:EmptyCustom -->
</div>
<!-- dtl:block:Empty -->
</div>
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: CustomerTicketOverview

Post by reneeb »

Have you changed the frontend module (Kernel/Modules/CustomerTicketOverview.pm)? It has to "enable" the template blocks...
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
chambles
Znuny newbie
Posts: 2
Joined: 07 Feb 2013, 18:43
Znuny Version: 3.1.10
Real Name: Cham
Company: HCIG

Re: CustomerTicketOverview

Post by chambles »

Not sure where to do that.

I've checked sysconfig and searched on CustomerTicketOverview and can't find anything to do with templates in

Frontend::Customer
Frontend::Customer::ModuleRegistration
Frontend::Customer::ViewNew
Frontend::Customer::ViewZoon

In Frontend::Customer::ModuleRegistration CustomerFrontend::Module###CustomerTicketOverview is enabled

I've opened CustomerTicketOverview.pm and the only mention of template in there is this bit of code

# build NavigationBar
$Output .= $Self->{LayoutObject}->CustomerNavigationBar();
$Output .= $Self->{LayoutObject}->Output(
TemplateFile => 'CustomerTicketOverview',
Data => \%Param,
);

And I'm not sure what to do with that.

Thanks for your quick response - I hope I'm making sense..

Cheers
Locked