[rt-users] Sort dashboards in a custom or pre-defined order ?

Shawn M Moore sartak at bestpractical.com
Thu Oct 15 13:18:14 EDT 2009


On Thu, Oct 15, 2009 at 09:26:50AM +0200, Emmanuel Lacour wrote:
> On Wed, Oct 14, 2009 at 06:47:19PM -0400, David wrote:
> > Hi,
> > 
> > I've created several dashboards and I would like to sort them in a
> > particular way (alphabetical or other).
> > 
> > However, it seems that by default, they are sorted by creation (by
> > their unique ID).
> > 
> 
> there is no configuration for this, you have to modify
> share/html/Dashboards/index.html:
> 
> line like this:
> 
>  Dashboards => [sort { $a->Id <=> $b->Id } @{ $dashboards->{personal} || [] }],
> 
> you can replace $a->Id with $a->Name for example.

I just added a MassageDashboards callback to
share/html/Dashboards/index.html so in future versions of RT, users will
not have to edit the template. See commit 0c6959ab9ad.

Shawn




More information about the rt-users mailing list