Re: rt extension and mason templates
Christian Loos <[email protected]> Thu, 3 Mar 2016 08:37:56 +0100
| Newsgroups | gmane.comp.bug-tracking.request-tracker.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
you can use this in your lib/RT/Extension/KANBAN.pm:
my $components = RT->Config->Get('HomepageComponents');
RT->Config->Set('HomepageComponents', [@$components, 'Kanban']);
@RT developer
A method like AddHomepageComponent (like AddJavaScript) would really
help here.
Especially as $HomepageComponents is an array ref instead of an array,
like other list configs (Plusgins, JSFiles, CSSFiles), which drives me
crazy every time I have to touch this. ;-)
Chris
Am 02.03.2016 um 17:04 schrieb Joachim Schiele:
> is there a way to add this new element only by using:
> Plugin('RT::Extension::KANBAN');
>
> because right now we also need to set this:
>
> Set(
> $HomepageComponents,
> [
> qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues
> MyReminders RefreshHomepage Dashboards SavedSearches FindUser Kanban) #
> loc_qw
> ]
> );
>
> or else we get:
> Invalid portlet Kanban
---------
RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html)
* Hamburg Germany - March 14 & 15, 2016
* Washington DC - May 23 & 24, 2016