[rt-users] quick trick: "RT at a glance" on 2.0

Ruslan U. Zakirov cubic at acronis.ru
Sat Oct 4 07:17:02 EDT 2003


Jesse Vincent wrote:

>  
>
>>As I see all people customise home page, but all of them have to change 
>>RT's Mason pages, add ellements or do copy-paste...
>>It would be really good to do flexible home page layout customisation.
>>
>>Something like this:
>>User say in some way - "I want block with Tickets with status open or 
>>new ordered by priority then queue and status, block must contain next 
>>Ticket fields: Subj, Requestor..."
>>    
>>
>
>Fully customisable user interface would be terribly nice, wouldn't it?
>I can't promise when it's going to hit the mainline, but I expect that
>chunks of RT's homepage will look something like this in the future:
>
>
>% my $rows = 10;
>% my $search = RT::Tickets->new($session{'CurrentUser'});
>% $search->FromSQL('Requestors = "'.$session{CurrentUser}->EmailAddress.'" AND (Status = "new" OR Status = "open")');
>% $search->OrderBy( FIELD => 'Priority', ORDER => 'descending');
>% $search->RowsPerPage($rows);
><& /Elements/View/CollectionAsTable, Collection => $search, Attributes=>[
>        {Name => 'id',Link => '/Ticket/Display.html?id=##id##'},
>        {Name => 'Subject',Link => '/Ticket/Display.html?id=##id##'},
>         'Priority', 'Owner'], 
>    Title => loc('My [_1] highest priority requested tickets', $rows) &>
>
>
>
>Please do note that this is a first cut that hasn't yet been settled
>upon nor had its syntax tweaked. But I do have dev code that uses this
>and works ;) When it's more ready for public scrutiny, don't worry, I'll
>let the public scrutinize it.
>
>  
>
I really glad to see that work is going on. I become bored without 
commits :)




More information about the rt-users mailing list