Jump to content

Multiple Widget Instances


Evaske

Recommended Posts

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?

Link to comment
Share on other sites

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.

 

 

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...