Making a column in the QueueView sortable

English! place to talk about development, programming and coding
Post Reply
weatherbys
Znuny newbie
Posts: 10
Joined: 17 Jun 2010, 13:12
Znuny Version: 2.0.2

Making a column in the QueueView sortable

Post by weatherbys »

Hi.

I have been modifying the AgentTicketOverviewSmall.dtl file and the TicketOverviewSmall.pm file to add and remove unwanted columns from the QueueView. However, I would like to make the "Created" column that I have added sortable so I have used the following code in the .dtl file:

Code: Select all

<!-- dtl:block:OverviewNavBarPageCreated -->
                    <th class="Created $QData{"CSS"}">
                        <a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"};$Data{"LinkSort"};SortBy=Created;OrderBy=$LQData{"OrderBy"}">$Text{"Created"}</a>
                    </th>
<!-- dtl:block:OverviewNavBarPageCreated -->
However, when I click the link I get a 'No data found' message and the url does not have "up" or "down" next to the 'OrderBy' parameter. I suspect it is something to do with making the column a "meta item?" but I'm not sure.

Can anyone help me please?

Thank you.
Post Reply