Jump to content

Recommended Posts

Posted

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?

Posted

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)

)

);

}

Posted
  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:

As shown in that thread, you need to add another element to the array indicating where else it should appear.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...