Evaske Posted August 10, 2013 Report Posted August 10, 2013 Hello,Is it possible to have a widget show on two dashboards? I want the billing overview to appear on the main dashboard as well as the billings dashboard.I can get it to appear on on or the other by editing the following section of code: public function getActions() { return array( array( 'action'=> "widget_staff_home", 'uri'=>"widget/billing_overview/admin_main/", 'name'=>Language::_("BillingOverviewPlugin.name", true) ) ); } And changing the action to either widget_staff_billing or widget_staff_home. Is there a way to make it appear on both of them?
Michael Posted August 10, 2013 Report Posted August 10, 2013 Try public function getActions() { return array( array( 'action'=> "widget_staff_home", 'action'=> "widget_staff_billing", 'uri'=>"widget/billing_overview/admin_main/", 'name'=>Language::_("BillingOverviewPlugin.name", true) ) ); }
Blesta Addons Posted August 10, 2013 Report Posted August 10, 2013 see this thread http://staging.blesta.com/forums/index.php?/topic/233-change-wedget-to-main-page/?hl=widget#entry1350 Michael 1
Tyson Posted August 10, 2013 Report Posted August 10, 2013 On 8/10/2013 at 8:57 AM, CubicWebs said: Try public function getActions() { return array( array( 'action'=> "widget_staff_home", 'action'=> "widget_staff_billing", 'uri'=>"widget/billing_overview/admin_main/", 'name'=>Language::_("BillingOverviewPlugin.name", true) ) ); } This wouldn't work. On 8/10/2013 at 11:19 AM, naja7host said: see this thread http://staging.blesta.com/forums/index.php?/topic/233-change-wedget-to-main-page/?hl=widget#entry1350 As shown in that thread, you need to add another element to the array indicating where else it should appear.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now