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? Quote
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) ) ); } Quote
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 Quote
Tyson 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) ) ); } This wouldn't work. 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.