[rt-users] Dashboard Sort on a Global Basis

Raymond Corbett Raymond.Corbett at arcproductions.com
Thu Feb 21 13:56:18 EST 2013


RT at a Glance is displaying our custom Dashboards fine.  But as has been mentioned before they are listed by ID.

We need to have them sorted alphabetically.

I found the thread  below.....

Will this sort the Dashboards on a Global basis for display on our Global RT at a Glance page?

The codes snippet below, says   3.8.7 and later in the 3.8 series.     Will this code work in 4.0.10?

And in which directory should this live.

On RT 4.0.0 and later

The MassageDashboards callback was removed in the run up to 4.0.0 in commit 6c815c8<https://github.com/bestpractical/rt/commit/6c815c8>. In order to affect dashboard sorting, you'll need to wrap a Perl method in RT::Dashboards and use the ModifyDashboards callback to ListOfDashboards.

On RT 3.8.7 and later in the 3.8 series [cid:image001.png at 01CE103A.F44AE660] Edit<http://requesttracker.wikia.com/wiki/ManualDashboards?action=edit&section=6>

Write a callback html/Callbacks/CustomDashboardSort/Dashboards/index.html/MassageDashboards

<%ARGS>

$PersonalDashboards

</%ARGS>

<%INIT>

@$PersonalDashboards = sort { $a->Name cmp $b->Name } @$PersonalDashboards

</%INIT>



[ARC]<http://www.arcproductions.com/>

Ray Corbett  Technology Projects Manager

p: 416.682.5200 x5232  | f: 416.682.5209
Arc Productions Ltd. | 230 Richmond Street East | Toronto, ON M5A 1P4
www.arcproductions.com<http://www.arcproductions.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130221/5b9fbc09/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 174 bytes
Desc: image001.png
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130221/5b9fbc09/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 4654 bytes
Desc: image002.gif
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130221/5b9fbc09/attachment.gif>


More information about the rt-users mailing list