[rt-devel] rt extension and mason templates

Christian Loos cloos at netcologne.de
Thu Mar 3 02:37:56 EST 2016


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. ;-)


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

More information about the rt-devel mailing list