Jump to content
  • 0

How To Add Plugin's Widgets To Client Dashboard As Invoices And Services


Question

Posted

As shown in figure:

 

this client dashboard Widgets orign is show Invoices , Services and transactions.  but now i need to change transactions to ticket. this ticket is support_mange plugin.

 

I don't know how to add to dashboard. Then i change app/client_controller.php protected function clientWidgets():

protected function clientWidgets() {
		$widgets = array();
		$widget_location = null;
		switch ($this->controller) {
			case "client_main":
				$widget_location = "widget_client_home";
				
				// Set the default widgets to appear
				$widgets = array(
					'client_invoices'=>array('uri'=>$this->base_uri . "invoices/?whole_widget=true"),
					'client_services'=>array('uri'=>$this->base_uri . "services/?whole_widget=true"),
					'client_tickets'=>array('uri'=>$this->base_uri . "plugin/support_manager/client_tickets/index/not_closed/"),
					/*'client_transactions'=>array('uri'=>$this->base_uri . "transactions/?whole_widget=true")*/
				);
				break;
		}

but this not display title ,then i change 

$this->WidgetClient->create($this->_("ClientTickets.index.boxtitle_tickets", true), array('id'=>"client_tickets"),null);

//or

$this->WidgetClient->create($this->_("ClientTickets.index.boxtitle_tickets", true), array('id'=>"client_tickets"),"full");

It can display title, but click Open or Closed will display 2 panel-title.

 

How should I solve this problem?

I see invoces and services ajax return "{"replacer":null,"content":"\n\t\t\t\n\t\t\t\t<div id=\"client_invoices\" class=\"panel panel-blesta content_section\"

 

 

but my ticket widgets ajax return "{"replacer":".panel_content","content":"\t\t\t<script type=\"text\/javascript\">\n$(document).blestaSetHeadTag(\"link\",";

20150814143249.png

 

 

 

20150814142548.jpg

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...